MCPcopy Create free account
hub / github.com/Keeper-Security/Commander / close_debug_log

Function close_debug_log

keepercommander/commands/supershell/debug.py:42–53  ·  view source on GitHub ↗

Close the debug log file if open. Call this when the application exits to ensure clean shutdown.

()

Source from the content-addressed store, hash-verified

40
41
42def close_debug_log() -> None:
43 """Close the debug log file if open.
44
45 Call this when the application exits to ensure clean shutdown.
46 """
47 global _debug_log_file
48 if _debug_log_file is not None:
49 try:
50 _debug_log_file.close()
51 except Exception:
52 pass
53 _debug_log_file = None

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected