From 71c786a57725d2ab2fd77155d8bd2ca1dfa3c348 Mon Sep 17 00:00:00 2001 From: zenggang Date: Sat, 29 Jul 2023 01:58:01 +0000 Subject: [PATCH] * Fix log format --- module/common/model.php | 14 +++++++------- module/system/ui/dblist.html.php | 1 - 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/module/common/model.php b/module/common/model.php index 3b71c1064d..d1d3ed68e6 100644 --- a/module/common/model.php +++ b/module/common/model.php @@ -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); diff --git a/module/system/ui/dblist.html.php b/module/system/ui/dblist.html.php index 4869c58641..173f2fa61d 100644 --- a/module/system/ui/dblist.html.php +++ b/module/system/ui/dblist.html.php @@ -12,7 +12,6 @@ namespace zin; $config->system->dtable->dbList->fieldList['actions']['list']['management']['url'] = 'javascript:manageDb("{name}", "{db_type}", "{namespace}")'; -$dbList = array((object)array('name' => 'qucheng-mysql', 'db_type' => 'mysql', 'status' => 'running')); $dbList = initTableData($dbList, $config->system->dtable->dbList->fieldList, $this->system); panel