Civi::log()->debug() should only log if debugging is enabled
Currently, Civi::log()->debug()
always logs to the ConfigAndLog
(text log files), no matter what the debug_enabled
setting is set to.
I would like to be able to leave some debug statements in my extension, so that it is easier to get more information about what happened, without running a debugger or temporarily inserting debug statements.
Grepping in core, only CRM/Core/Payment/PayPalIPN.php
and CRM/Core/Payment/PayPalProIPN.php
seem to be using Civi::log()->debug()
and it seems indeed like debug info.