Skip to content

Changes

Summary

  1. logging: use ?LOG macro instead of calling logger:level() (details)
Commit 95e0ad38e65358529f139b1ef6fb449bac80fd01 by Vadim Yanitskiy
logging: use ?LOG macro instead of calling logger:level()

The difference between using the macros and the exported functions
is that macros add location (originator) information to the metadata,
and perform lazy evaluation by wrapping the logger call in a case
statement, so it is only evaluated if the log level of the event
passes the primary log level check.

https://www.erlang.org/doc/apps/kernel/logger_chapter.html#logger-api

Change-Id: I3b6e4296f736f9c87d2706ef5fb75146fd9f1239
The file was modified src/sctp_proxy.erl
The file was modified src/sctp_client.erl
The file was modified src/sctp_server.erl
The file was modified src/s1ap_proxy.erl