@@ -77,11 +77,11 @@ |
||
| 77 | 77 | ); |
| 78 | 78 | if ($log) { |
| 79 | 79 | $tm = microtime(true) - $tm; |
| 80 | - if ($tm >= (float)$this->option('log_slow', 0)) { |
|
| 80 | + if ($tm >= (float) $this->option('log_slow', 0)) { |
|
| 81 | 81 | @file_put_contents( |
| 82 | 82 | $log, |
| 83 | - '--' . date('Y-m-d H:i:s') . ' ' . sprintf('%01.6f', $tm) . "s\r\n" . |
|
| 84 | - $sql . "\r\n" . |
|
| 83 | + '--'.date('Y-m-d H:i:s').' '.sprintf('%01.6f', $tm)."s\r\n". |
|
| 84 | + $sql."\r\n". |
|
| 85 | 85 | "\r\n", |
| 86 | 86 | FILE_APPEND |
| 87 | 87 | ); |