ソースを参照

The debug log is not written to the database.

root 5 ヶ月 前
コミット
bf16ca89af
1 ファイル変更1 行追加1 行削除
  1. 1 1
      html/inc/common.php

+ 1 - 1
html/inc/common.php

@@ -2656,7 +2656,7 @@ function write_log($db, $msg, $level = L_INFO, $auth_id = 0)
     // Для уровня L_DEBUG пишем в error_log
     if ($level === L_DEBUG) {
         error_log("DEBUG: " . $msg);
-//        return;
+        return;
     }
     // пишем в БД
     $stmt = mysqli_prepare($db, "INSERT INTO worklog(customer, message, level, auth_id, ip) VALUES (?, ?, ?, ?, ?)");