mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-14 12:13:06 +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.
|
failed_db_connections = 0 //If this connection succeeded, reset the failed connections counter.
|
||||||
else
|
else
|
||||||
failed_db_connections++ //If it failed, increase the failed connections counter.
|
failed_db_connections++ //If it failed, increase the failed connections counter.
|
||||||
|
world.log << dbcon.ErrorMsg()
|
||||||
|
|
||||||
return .
|
return .
|
||||||
|
|
||||||
@@ -345,6 +346,7 @@ proc/setup_old_database_connection()
|
|||||||
failed_old_db_connections = 0 //If this connection succeeded, reset the failed connections counter.
|
failed_old_db_connections = 0 //If this connection succeeded, reset the failed connections counter.
|
||||||
else
|
else
|
||||||
failed_old_db_connections++ //If it failed, increase the failed connections counter.
|
failed_old_db_connections++ //If it failed, increase the failed connections counter.
|
||||||
|
world.log << dbcon.ErrorMsg()
|
||||||
|
|
||||||
return .
|
return .
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user