Add system.dlogip setting usage in dlogger()
This commit is contained in:
parent
d0c9e7939c
commit
3dda70baf1
1 changed files with 6 additions and 2 deletions
|
@ -737,12 +737,16 @@ function dlogger($msg, $level = 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$logfile = Config::get('system','dlogfile');
|
$logfile = Config::get('system', 'dlogfile');
|
||||||
|
|
||||||
if (! $logfile) {
|
if (! $logfile) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$dlogip = Config::get('system', 'dlogip');
|
||||||
|
if ($dlogip && $_SERVER['REMOTE_ADDR'] != $dlogip) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (count($LOGGER_LEVELS) == 0) {
|
if (count($LOGGER_LEVELS) == 0) {
|
||||||
foreach (get_defined_constants() as $k => $v) {
|
foreach (get_defined_constants() as $k => $v) {
|
||||||
if (substr($k, 0, 7) == "LOGGER_") {
|
if (substr($k, 0, 7) == "LOGGER_") {
|
||||||
|
|
Loading…
Reference in a new issue