Skip to content

Commit

Permalink
Je potřeba vytvořit adresář pro výjimky
Browse files Browse the repository at this point in the history
  • Loading branch information
MilanPala committed Feb 25, 2019
1 parent b844251 commit 7546ece
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Handlers/BlueScreenHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ protected function write(array $record): void
return;
}

$extensionLogger = new \Tracy\Logger($this->getLogDirectory($record['datetime']));
$logDirectory = $this->getLogDirectory($record['datetime']);
\Nette\Utils\FileSystem::createDir($logDirectory);

$extensionLogger = new \Tracy\Logger($logDirectory);

$exception = $record['context']['exception'];
$exceptionFile = $extensionLogger->getExceptionFile($exception);
Expand Down

0 comments on commit 7546ece

Please sign in to comment.