diff --git a/app/Jobs/CalculateUserSeedBonus.php b/app/Jobs/CalculateUserSeedBonus.php index 8bfa838e..08293e1f 100644 --- a/app/Jobs/CalculateUserSeedBonus.php +++ b/app/Jobs/CalculateUserSeedBonus.php @@ -149,9 +149,10 @@ public function handle() fwrite($fd, $logStr); $costTime = time() - $beginTimestamp; do_log(sprintf( - "$logPrefix, [DONE], update user count: %s, result: %s, cost time: %s seconds, sql: %s", - count($seedPointsUpdates), var_export($result, true), $costTime, $sql + "$logPrefix, [DONE], update user count: %s, result: %s, cost time: %s seconds", + count($seedPointsUpdates), var_export($result, true), $costTime )); + do_log("$logPrefix, sql: $sql", "debug"); } /** diff --git a/app/Jobs/UpdateTorrentSeedersEtc.php b/app/Jobs/UpdateTorrentSeedersEtc.php index 6b37083b..6efc3e88 100644 --- a/app/Jobs/UpdateTorrentSeedersEtc.php +++ b/app/Jobs/UpdateTorrentSeedersEtc.php @@ -117,9 +117,10 @@ public function handle() } $costTime = time() - $beginTimestamp; do_log(sprintf( - "$logPrefix, [DONE], update torrent count: %s, result: %s, cost time: %s seconds, sql: %s", - count($torrentIdArr), var_export($result, true), $costTime, $sql + "$logPrefix, [DONE], update torrent count: %s, result: %s, cost time: %s seconds", + count($torrentIdArr), var_export($result, true), $costTime )); + do_log("$logPrefix, sql: $sql", "debug"); } /** diff --git a/app/Jobs/UpdateUserSeedingLeechingTime.php b/app/Jobs/UpdateUserSeedingLeechingTime.php index 30bbc258..6cad28ad 100644 --- a/app/Jobs/UpdateUserSeedingLeechingTime.php +++ b/app/Jobs/UpdateUserSeedingLeechingTime.php @@ -100,9 +100,10 @@ public function handle() } $costTime = time() - $beginTimestamp; do_log(sprintf( - "$logPrefix, [DONE], update user count: %s, result: %s, cost time: %s seconds, sql: %s", - $count, var_export($result, true), $costTime, $sql + "$logPrefix, [DONE], update user count: %s, result: %s, cost time: %s seconds", + $count, var_export($result, true), $costTime )); + do_log("$logPrefix, sql: $sql", "debug"); } /** diff --git a/include/constants.php b/include/constants.php index 9962a699..98b0f7cf 100644 --- a/include/constants.php +++ b/include/constants.php @@ -1,6 +1,6 @@