Browse Source

Fixed bug where creation of timestamp could fail

main v1.1.1
Dustin Wilson 4 months ago
parent
commit
0a710986cd
  1. 2
      lib/Logger/Handler.php

2
lib/Logger/Handler.php

@ -66,7 +66,7 @@ abstract class Handler {
return;
}
$time = \DateTimeImmutable::createFromFormat('U.u', (string)microtime(true))->format($this->_timeFormat);
$time = \DateTimeImmutable::createFromFormat('U.u', sprintf('%.4f', microtime(true)))->format($this->_timeFormat);
$message = trim($message);
if ($this->_messageTransform !== null) {

Loading…
Cancel
Save