Skip to content

Duplicate Command Messaging / Logging #1109

@josheppinette

Description

@josheppinette

Describe the bug

I have noticed that some alembic command messaging is duplicated where one message goes through the python logger and one around (direct to stdout).

at=ERROR name=alembic.util.messaging msg="Can't locate revision identified by '1'"
  FAILED: Can't locate revision identified by '1'

Expected behavior

Since Alembic leans into configuring all logging via the python logger (alembic.ini), I don't think there should be any messaging that goes around that mechanism.

Of course, I am not an expert in Alembic, so I could be totally missing something.

To Reproduce

Here is a snippet from my logging config.

...
"loggers": {
    "": {"handlers": ["console"]},
    "alembic": {"level": "INFO"},
},
...

Versions.

  • OS: MacOS 12.4
  • Python: 3.10.0
  • Alembic: 1.8.1
  • SQLAlchemy: 1.4.42

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions