Skip to content

Commit a358282

Browse files
authored
Merge pull request #541 from gregcorbett/gocdb_monitor_tweak
Log database failure details instead of displaying them on the status webpage (to master)
2 parents 27ddce5 + 0898437 commit a358282

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

htdocs/web_portal/GOCDB_monitor/tests.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,9 @@ function test_db_connection()
144144
$retval["status"] = OK;
145145
$retval["message"] = OKMSG;
146146
} catch (\Exception $e) {
147-
$message = $e->getMessage();
147+
error_log($e->getMessage());
148148
$retval["status"] = NOK;
149-
$retval["message"] = "$message";
149+
$retval["message"] = "Database connection test failed";
150150
}
151151

152152
return $retval;
@@ -242,7 +242,7 @@ function run_tests(&$message)
242242

243243
if ($res["status"] != "ok") {
244244
$errorCount++;
245-
$messages[] = "Database connection test failed: " . $res["message"];
245+
$messages[] = $res["message"];
246246
}
247247

248248
$res = test_url(Factory::getConfigService()->GetPiUrl() .

htdocs/web_portal/static_html/goc5_logo.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<!-- <img src="img/Logo-1.6.png" class="logo_image" height="39" style="vertical-align: middle;"/>-->
55
<h3 class="Logo_Text Small_Bottom_Margin Standard_Padding"
66
style="vertical-align: middle; margin-left: 0.2em;">
7-
GOCDB 5.12.2
7+
GOCDB 5.12.3
88
</h3>
99

1010
</a>

0 commit comments

Comments
 (0)