You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python version = 3.11.8
pymongo = 4.5
2024-08-02T04:29:53.748307147Z File "/tmp/8dcb2a9152dfc2b/antenv/lib/python3.11/site-packages/log4mongo/handlers.py", line 244, in emit
2024-08-02T04:29:53.748310947Z if len(self.buffer) >= self.buffer_size or record.levelno >= getattr(logging, self.buffer_early_flush_level):
2024-08-02T04:29:53.748315147Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-08-02T04:29:53.748319347Z TypeError: attribute name must be string, not 'int'
Same code works on Python version 3.11.4 locally, but in Azure it's failing.
The text was updated successfully, but these errors were encountered:
log4jmongo version = 1.8.1
Python version = 3.11.8
pymongo = 4.5
While logging to MongoDB via BufferedMongoHandler, get error all time TypeError: attribute name must be string, not 'int'
Python version = 3.11.8
pymongo = 4.5
2024-08-02T04:29:53.748307147Z File "/tmp/8dcb2a9152dfc2b/antenv/lib/python3.11/site-packages/log4mongo/handlers.py", line 244, in emit
2024-08-02T04:29:53.748310947Z if len(self.buffer) >= self.buffer_size or record.levelno >= getattr(logging, self.buffer_early_flush_level):
2024-08-02T04:29:53.748315147Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-08-02T04:29:53.748319347Z TypeError: attribute name must be string, not 'int'
Same code works on Python version 3.11.4 locally, but in Azure it's failing.
The text was updated successfully, but these errors were encountered: