* Fix log format

This commit is contained in:
zenggang
2023-07-29 01:58:01 +00:00
parent 0e5af93deb
commit 71c786a577
2 changed files with 7 additions and 8 deletions
+7 -7
View File
@@ -3241,16 +3241,16 @@ EOF;
$fh = fopen($logFile, 'a');
if($fh)
{
fwrite($fh, date('Ymd H:i:s') . ': ' . $app->getURI() . '\n');
fwrite($fh, "{$requestType} url: " . $url . '\n');
if(!empty($data)) fwrite($fh, 'data: ' . print_r($data, true) . '\n');
fwrite($fh, 'results:' . print_r($response, true) . '\n');
fwrite($fh, date('Ymd H:i:s') . ': ' . $app->getURI() . "\n");
fwrite($fh, "{$requestType} url: " . $url . "\n");
if(!empty($data)) fwrite($fh, 'data: ' . print_r($data, true) . "\n");
fwrite($fh, 'results:' . print_r($response, true) . "\n");
if(!empty($errors))
{
fwrite($fh, 'errno: ' . $errno . '\n');
fwrite($fh, 'errors: ' . $errors . '\n');
fwrite($fh, 'info: ' . print_r($info, true) . '\n');
fwrite($fh, 'errno: ' . $errno . "\n");
fwrite($fh, 'errors: ' . $errors . "\n");
fwrite($fh, 'info: ' . print_r($info, true) . "\n");
}
fclose($fh);