From 3d1860b4e56d94493971f80434035801bc04c65e Mon Sep 17 00:00:00 2001 From: Masayuki Nii Date: Mon, 11 Sep 2023 07:30:23 +0900 Subject: [PATCH] Removed debug messages. --- params.php | 2 +- src/php/DB/PDO.php | 4 ++-- src/php/DB/Proxy.php | 2 +- src/php/DB/Proxy_ExtSupport.php | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/params.php b/params.php index a0585eb9b..2b2b8df1a 100644 --- a/params.php +++ b/params.php @@ -255,7 +255,7 @@ // If you don't set the default timezone in the php.ini file, // activate the line below and specify suitable timezone name. -$defaultTimezone = 'UTC';//''Asia/Tokyo'; +$defaultTimezone = 'Asia/Tokyo'; $followingTimezones = true; // Server side locale for this application. This locale replaces the browser's accepting languages. diff --git a/src/php/DB/PDO.php b/src/php/DB/PDO.php index 54b43e690..43ced4f0f 100644 --- a/src/php/DB/PDO.php +++ b/src/php/DB/PDO.php @@ -465,8 +465,8 @@ private function getDateTimeExpression(string $datetime, bool $isToServer = fals $dt->setTimezone(new DateTimeZone($this->defaultTimezone)); $converted = $dt->format($isTime ? 'H:i:s' : 'Y-m-d H:i:s'); - $this->logger->setDebugMessage("[getDateTimeExpression] datetime={$datetime}->{$converted}, datetime={$datetime}, " - . "serverOffset={$serverOffset}, clientOffset={$clientOffset}, shiftSec={$shiftSec}"); +// $this->logger->setDebugMessage("[getDateTimeExpression] datetime={$datetime}->{$converted}, datetime={$datetime}, " +// . "serverOffset={$serverOffset}, clientOffset={$clientOffset}, shiftSec={$shiftSec}"); return $converted; } diff --git a/src/php/DB/Proxy.php b/src/php/DB/Proxy.php index 9bff11c03..d0fd2274e 100644 --- a/src/php/DB/Proxy.php +++ b/src/php/DB/Proxy.php @@ -356,7 +356,7 @@ public function readFromDB(): ?array } } } catch (Exception $e) { - $this->logger->setErrorMessage("Exception:[1] {$e->getMessage()} ###{$e->getTraceAsString()}"); + $this->logger->setErrorMessage("Exception:[1] {$e->getMessage()} \nTrace:{$e->getTraceAsString()}"); return null; } return $result; diff --git a/src/php/DB/Proxy_ExtSupport.php b/src/php/DB/Proxy_ExtSupport.php index 642e0b8c0..dfb01fd26 100644 --- a/src/php/DB/Proxy_ExtSupport.php +++ b/src/php/DB/Proxy_ExtSupport.php @@ -215,7 +215,7 @@ private function setupQuery(?array $query): void return; } if (isset($query[0]) && is_array($query[0])) { - Logger::getInstance()->setDebugMessage("###1#"); +// Logger::getInstance()->setDebugMessage("###1#"); foreach ($query as $item) { $this->extProxy->dbSettings->addExtraCriteria($item['field'], $item['operator'], $item['value'] ?? null); }