You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that even when the log level is set to :warn or :info the inspections made in debug logs are still executed despite not being used, this is because a straight string is passed to the Logger instead of anonymous functions (at least in the tracker).
A significant amount of reductions were seen in our app and many calls to printable? from within Swarm.Tracker we suspect this is the cause as large structures are inspected as part of the debug messages.
Ideally anonymous functions should be passed to Logger in all instances so disabled log levels don't incur a penalty when inspecting structures for printing.
The text was updated successfully, but these errors were encountered:
hazardfn
changed the title
Debug log inspections still handled
Debug log inspection performance penalty
Jul 16, 2020
It seems that even when the log level is set to :warn or :info the inspections made in debug logs are still executed despite not being used, this is because a straight string is passed to the Logger instead of anonymous functions (at least in the tracker).
See: https://elixirforum.com/t/use-of-inspect-in-log-messages/2100/7
A significant amount of reductions were seen in our app and many calls to
printable?
from withinSwarm.Tracker
we suspect this is the cause as large structures are inspected as part of the debug messages.Ideally anonymous functions should be passed to Logger in all instances so disabled log levels don't incur a penalty when inspecting structures for printing.
The text was updated successfully, but these errors were encountered: