1
0
Fork 0

Add system.dlogip setting usage in dlogger()

This commit is contained in:
Hypolite Petovan 2018-02-03 21:46:28 -05:00
parent d0c9e7939c
commit 3dda70baf1

View file

@ -737,12 +737,16 @@ function dlogger($msg, $level = 0) {
return;
}
$logfile = Config::get('system','dlogfile');
$logfile = Config::get('system', 'dlogfile');
if (! $logfile) {
return;
}
$dlogip = Config::get('system', 'dlogip');
if ($dlogip && $_SERVER['REMOTE_ADDR'] != $dlogip) {
return;
}
if (count($LOGGER_LEVELS) == 0) {
foreach (get_defined_constants() as $k => $v) {
if (substr($k, 0, 7) == "LOGGER_") {