0.8.0.0
This commit is contained in:
@@ -102,11 +102,11 @@ function askMulti($string, $buttons) {
|
||||
return array_search($result,$buttons);
|
||||
}
|
||||
|
||||
function msg($string) {
|
||||
function msg($string, $extra=true) {
|
||||
global $messages_log_file;
|
||||
$logstring = "[".date('Y-m-d h:i:s')."] ".$string."\n";
|
||||
file_put_contents($messages_log_file, $logstring, FILE_APPEND);
|
||||
file_put_contents("/tmp/yuba/debug.log", $logstring, FILE_APPEND);
|
||||
if ($extra) { file_put_contents("/tmp/yuba/debug.log", $logstring, FILE_APPEND); }
|
||||
return $string."\n";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user