mirror of
https://github.com/friendica/friendica
synced 2025-04-27 05:50:10 +00:00
Some small bugfixes (mostly warnings) and little improvements to the log
This commit is contained in:
parent
1bf9d99be2
commit
de9a02b9ae
4 changed files with 15 additions and 5 deletions
|
@ -99,7 +99,7 @@ class dba {
|
|||
if (($duration > $a->config["system"]["db_loglimit"])) {
|
||||
$duration = round($duration, 3);
|
||||
$backtrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
|
||||
@file_put_contents($a->config["system"]["db_log"], $duration."\t".
|
||||
@file_put_contents($a->config["system"]["db_log"], datetime_convert()."\t".$duration."\t".
|
||||
basename($backtrace[1]["file"])."\t".
|
||||
$backtrace[1]["line"]."\t".$backtrace[2]["function"]."\t".
|
||||
substr($sql, 0, 2000)."\n", FILE_APPEND);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue