fix(legacy): do not rely on undefined SERVER_NAME (#2031)
This commit is contained in:
parent
631a7956ea
commit
45c283504e
3 changed files with 9 additions and 34 deletions
|
@ -49,10 +49,6 @@ class Logging
|
|||
{
|
||||
$linePrefix = '';
|
||||
|
||||
if (array_key_exists('SERVER_NAME', $_SERVER)) {
|
||||
$linePrefix .= $_SERVER['SERVER_NAME'] . ' ';
|
||||
}
|
||||
|
||||
if ($debugMode) {
|
||||
// debug_backtrace is SLOW so we don't want this invoke unless there was a real error! (hence $debugMode)
|
||||
$bt = debug_backtrace();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue