Something went wrong while setting issue due date.
Possibility to see debug in server logs instead of the interface
Closed
Possibility to see debug in server logs instead of the interface
When enabling logs, they are displayed in the interface, for all users.
I would like to see logs in servers logs on the server instead.
It can be done with error_log
: https://www.php.net/manual/en/function.error-log
Simple patch:
diff --git a/include/functions.inc b/include/functions.inc
index f305e99e..d78c6543 100644
--- a/include/functions.inc
+++ b/include/functions.inc
@@ -193,6 +193,7 @@ function DEBUG ($level, $line, $function, $file, $data, $info = '')
}
echo '<div class="debug_div">';
echo $output;
+ error_log($output);
if (is_array($data)) {
print_a($data);
} else {
There should be a better patch, which can route the output depending on an option: interface (default) or server.