Skip to content
This repository has been archived by the owner on Mar 29, 2019. It is now read-only.

Commit

Permalink
Dropped old compatibility code
Browse files Browse the repository at this point in the history
  • Loading branch information
fprochazka committed Dec 7, 2014
1 parent 2197bab commit 172d96b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Kdyby/Curl/Diagnostics/FileLogger.php
Expand Up @@ -14,6 +14,7 @@
use Kdyby\Curl;
use Nette;
use Nette\PhpGenerator as Code;
use Tracy\Debugger;



Expand All @@ -36,7 +37,7 @@ class FileLogger extends Nette\Object implements Curl\IRequestLogger
*/
public function __construct($logDir = NULL)
{
$this->logDir = $logDir ?: Nette\Diagnostics\Debugger::$logDirectory;
$this->logDir = $logDir ?: Debugger::$logDirectory;
}


Expand Down Expand Up @@ -115,7 +116,7 @@ protected function write($content, $id)
}

if (!@file_put_contents($file, $content, FILE_APPEND)) {
Nette\Diagnostics\Debugger::log("Logging to $file failed.");
Debugger::log("Logging to $file failed.");
}
}

Expand Down

0 comments on commit 172d96b

Please sign in to comment.