Skip to content

Commit

Permalink
Removed debug messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
msyk committed Sep 10, 2023
1 parent 3322bec commit 3d1860b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion params.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions src/php/DB/PDO.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/php/DB/Proxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/php/DB/Proxy_ExtSupport.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 3d1860b

Please sign in to comment.