mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Add error reporting on failed DB connection.
This commit is contained in:
@@ -308,6 +308,7 @@ proc/setup_database_connection()
|
||||
failed_db_connections = 0 //If this connection succeeded, reset the failed connections counter.
|
||||
else
|
||||
failed_db_connections++ //If it failed, increase the failed connections counter.
|
||||
world.log << dbcon.ErrorMsg()
|
||||
|
||||
return .
|
||||
|
||||
@@ -345,6 +346,7 @@ proc/setup_old_database_connection()
|
||||
failed_old_db_connections = 0 //If this connection succeeded, reset the failed connections counter.
|
||||
else
|
||||
failed_old_db_connections++ //If it failed, increase the failed connections counter.
|
||||
world.log << dbcon.ErrorMsg()
|
||||
|
||||
return .
|
||||
|
||||
|
||||
Reference in New Issue
Block a user