Adds DI::flushLogger() to renew Logger instances

This commit is contained in:
Philipp
2021-10-31 20:15:57 +01:00
parent 7637ae1dcc
commit 32f0c3fb9c
3 changed files with 13 additions and 2 deletions

View File

@@ -1182,7 +1182,7 @@ class Worker
// We now are in the new worker
DBA::connect();
/// @todo Reinitialize the logger to set a new process_id and uid
DI::flushLogger();
$process = DI::process()->create($pid);
$cycles = 0;