Disable Logging panel when DEBUG is set to False to prevent memory leaks