Fix log setup condition in setup_rns_logging to use 'is not' for comparison
This commit is contained in:
@@ -32,7 +32,7 @@ def setup_rns_logging():
|
|||||||
"""Set up RNS log replacement. Call this after RNS.Reticulum initialization."""
|
"""Set up RNS log replacement. Call this after RNS.Reticulum initialization."""
|
||||||
global _original_rns_log
|
global _original_rns_log
|
||||||
# Only set up if not already done and if RNS.log is not already our function
|
# Only set up if not already done and if RNS.log is not already our function
|
||||||
if RNS.log != log_ret and _original_rns_log != log_ret:
|
if RNS.log is not log_ret and _original_rns_log is not log_ret:
|
||||||
_original_rns_log = RNS.log
|
_original_rns_log = RNS.log
|
||||||
RNS.log = log_ret
|
RNS.log = log_ret
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user