Add debug logging system with full request/response logging and sanitization
- New debug logging system with auto-sanitization of sensitive data (passwords, tokens, JWTs, keys) - Debug mode can be enabled via launcher (option 6) or Server page UI - Debug logs written to logs/debug.log with full HTTP request/response details - Added comprehensive page access logging (overview, players, vehicles, server, director) - Added SSH, K8s, database, and service initialization debug logging - Fixed miner protection console spam (now uses DEBUG level) - Removed admin management section from server page - Updated README with debug mode documentation
This commit is contained in:
1 parent
e977f8cd5b
commit
00288d93a6
12 files changed
+662
-28
No files matched your search
@@ -121,14 +121,19 @@ class DatabaseService:
|
||||
try:
|
||||
conn = self.get_connection()
|
||||
if not conn:
|
||||
logger.warning("Database health check: no connection available")
|
||||
return False
|
||||
cur = conn.cursor()
|
||||
cur.execute('SELECT 1')
|
||||
cur.fetchone()
|
||||
cur.close()
|
||||
self.return_connection(conn)
|
||||
db_host = self.db_config.get('host', 'unknown')
|
||||
db_port = self.db_config.get('port', 'unknown')
|
||||
logger.debug(f"Database health check OK (host={db_host}, port={db_port})")
|
||||
return True
|
||||
except Exception:
|
||||
except Exception as e:
|
||||
logger.warning(f"Database health check FAILED: {e}")
|
||||
return False
|
||||
|
||||
def ensure_tables(self):
|
||||
|
||||
Reference in new issue
Block a user