Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fruitsalad breaks on findAndModify log #12

Open
rayssd opened this issue May 15, 2024 · 0 comments · May be fixed by #13
Open

fruitsalad breaks on findAndModify log #12

rayssd opened this issue May 15, 2024 · 0 comments · May be fixed by #13

Comments

@rayssd
Copy link

rayssd commented May 15, 2024

The code doesn't seem to handle findAndModify

attr.command.findAndModify contains the collection name, and in this log format, attr.command.update contains the update content which is a dict.

When parsing a findAndModify log line it throws the following error.

Traceback (most recent call last):
  File "/Users/ray/Projects/python/fruitsalad/fruitsalad.py", line 285, in run
    self._obfuscate_namespace(
  File "/Users/ray/Projects/python/fruitsalad/fruitsalad.py", line 116, in _obfuscate_namespace
    parts = ns.split('.')
            ^^^^^^^^
AttributeError: 'dict' object has no attribute 'split'
@rayssd rayssd linked a pull request May 15, 2024 that will close this issue
@rayssd rayssd changed the title findAndModify breaks fruitsalad breaks on findAndModify log May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant