Logging bug fixes for per_date/per_run flags
This commit is contained in:
@@ -407,13 +407,6 @@ class Logging
|
|||||||
}
|
}
|
||||||
$this->setLogFlag($log_flag_key);
|
$this->setLogFlag($log_flag_key);
|
||||||
}
|
}
|
||||||
// init per run uid
|
|
||||||
if ($this->getLogFlag(Flag::per_run)) {
|
|
||||||
$this->setLogUniqueId();
|
|
||||||
} elseif ($this->getLogFlag(Flag::per_date)) {
|
|
||||||
// init file date
|
|
||||||
$this->log_file_date = date('Y-m-d');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -776,6 +769,13 @@ class Logging
|
|||||||
public function setLogFlag(Flag $flag): void
|
public function setLogFlag(Flag $flag): void
|
||||||
{
|
{
|
||||||
$this->log_flags |= $flag->value;
|
$this->log_flags |= $flag->value;
|
||||||
|
// init per run uid
|
||||||
|
if ($this->getLogFlag(Flag::per_run)) {
|
||||||
|
$this->setLogUniqueId();
|
||||||
|
} elseif ($this->getLogFlag(Flag::per_date)) {
|
||||||
|
// init file date
|
||||||
|
$this->setLogDate();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user