Skip to content

Commit

Permalink
Edited src/proxies/log.class.php via GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
Cweener committed Mar 5, 2011
1 parent 3eddb8a commit 552bca9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/proxies/log.class.php
Expand Up @@ -48,14 +48,14 @@ function run(&$xml_reponse, $p)
$day = date("d");

$logpath = ($c->proxies_cfg[$this->proxyname]["path"] == "" ? $c->data_private_path."/logs" :
$c->proxies_cfg[$this->proxyname]["path"]);
$c->proxies_cfg[$this->proxyname]["path"]);
$logpath .= "/".$c->getId();
$logpath .= "/".$year."/".$month;

if (!file_exists($logpath)) @mkdir_r($logpath);
if (file_exists($logpath) && is_writable($logpath))
{
$logfile = $logpath."/".$day.".log";
$logfile = $logpath."/".$day.".log";
if (is_writable($logpath))
{
// @todo write logs in a cleaner structured language (xml, html ... ?)
Expand Down

0 comments on commit 552bca9

Please sign in to comment.