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
- Cant configure email templates
i configure it on the console, and when i send the OTP, it sends with appwrite's email (instead of custom smtp) and with the branding, but i have the Pro (educa...
- Need help with createExecution function
Hi, Need some help understanding createExecution. When requesting function execution via createExecution, the function handler arguments are incorrect and rese...
- Need Help with Google OAuth2 in Expo usi...
I'm learning React Native with Expo and trying to set up Google OAuth2 with Appwrite. I couldn't find any good docs or tutorials for this and my own attempt did...