Closed dealfonso closed 2 years ago
@dealfonso normally DEBUG_LEVEL is 1 or 2 by default, why 3? Why always debug mode by default?
As it is a library, I find that it is more appropriate to deactivate the debug mode than activating it (at least, for the current state of sapp)
@dealfonso please release for packagist
functions
p_debug
,p_warning
,p_error
,p_debug_var
were showing messages anytime. Using_DEBUG_LEVEL
constant, it is possible to control which messages are shown depending on its value.Usage: define
_DEBUG_LEVEL
constant before importing SAPP. e.g.: