Logging handler to send logs to your OpenSearch cluster with bulk SSL. Forked from https://github.com/logzio/logzio-python-handler
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

18 lines
385 B

# Modules imported only once, this is effectively a singleton
class PersistentFlags:
def __init__(self):
self.server_error = False
def set_server_error(self):
self.server_error = True
def clear_server_error(self):
self.server_error = False
def get_server_error(self):
return self.server_error
persistent_flags = PersistentFlags()