Skip to content

TypeError: attribute name must be string, not 'int' #60

Description

@nabeenb

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions