]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - inc/poche/pocheTools.class.php
rename pocheTool -> pocheTools
[github/wallabag/wallabag.git] / inc / poche / pocheTools.class.php
similarity index 94%
rename from inc/poche/pocheTool.class.php
rename to inc/poche/pocheTools.class.php
index cade115e598b811063a5f3df1e832fc0e80088e6..8907c18e384cf74bca7ba4fb6aceadc2ad8b635f 100644 (file)
@@ -118,7 +118,9 @@ class pocheTools
 
     public static function logm($message)
     {
-        $t = strval(date('Y/m/d_H:i:s')).' - '.$_SERVER["REMOTE_ADDR"].' - '.strval($message)."\n";
-        file_put_contents('./log.txt',$t,FILE_APPEND);
+        if (DEBUG_POCHE) {
+            $t = strval(date('Y/m/d_H:i:s')) . ' - ' . $_SERVER["REMOTE_ADDR"] . ' - ' . strval($message) . "\n";
+            file_put_contents('./log.txt', $t, FILE_APPEND);
+        }
     }
 }
\ No newline at end of file