mirror of
https://github.com/friendica/friendica
synced 2025-02-08 19:38:51 +00:00
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
|
@ -738,11 +738,15 @@ function dlogger($msg, $level = 0) {
|
|||
}
|
||||
|
||||
$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_") {
|
||||
|
|
Loading…
Add table
Reference in a new issue