
In the past I had an Appwrite log handler class that worked fine:
def __init__(self, context):
super().__init__()
self.context = context
def emit(self, record):
msg = self.format(record)
if not self.context:
return
if record.levelno == logging.ERROR:
self.context.error(msg)
else:
self.context.log(msg)
logging.getLogger().addHandler(AppwriteLogger(context))
But recently I only get logs for ERROR level and the INFO level fails with "Unsupported logs detected. Use context.log() or context.error() for logging."
logging.error(msg) still works, but logging.info(msg) fails.
Using context.log() still works but I want to have multiple logging actions triggered by one log statement.
Any idea what is causing this?
Recommended threads
- phantom relationships appear on parent c...
i have this bug were my past deleted collection apears as relationship to my parent collection. when i try to delete that relationship from parent it gives me e...
- Attributes Problem - Cloud
I am not able to see the attribute columns and their context on cloud. Can you help?
- Authorization header not working in Appw...
I have an Appwrite function that takes a custom bearer token as authentication. The function works fine locally when I test it with `appwrite run functions`, bu...
