Skip to content

Commit

Permalink
Debugger: allowed using stream wrappers as log directory [Closes #125]
Browse files Browse the repository at this point in the history
This change allows use path for log directory in form
'redis://path/to/cache'
  • Loading branch information
sallyx authored and dg committed Nov 30, 2015
1 parent f8224c6 commit b6ce324
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Tracy/Debugger.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public static function enable($mode = NULL, $logDirectory = NULL, $email = NULL)
self::$logDirectory = $logDirectory;
}
if (self::$logDirectory) {
if (!is_dir(self::$logDirectory) || !preg_match('#([a-z]:)?[/\\\\]#Ai', self::$logDirectory)) {
if (!is_dir(self::$logDirectory) || !preg_match('#([a-z]+:)?[/\\\\]#Ai', self::$logDirectory)) {
self::$logDirectory = NULL;
self::exceptionHandler(new \RuntimeException('Logging directory not found or is not absolute path.'));
}
Expand Down

0 comments on commit b6ce324

Please sign in to comment.