-
Notifications
You must be signed in to change notification settings - Fork 16
feat: unbundle delphi-logger and re-export it in delphi-utils #1970
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
Conversation
ff93c62
to
1a9ceb0
Compare
See this snag here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple things to verify, but otherwise looks good.
pool.join() | ||
finally: | ||
logger_thread.stop() | ||
from delphi_logger import get_structured_logger # pylint: disable=unused-import |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question: this bit does the reexporting?
get_structured_logger | ||
from typing import Any, Dict | ||
|
||
from delphi_utils import add_prefix, create_export_csv, get_structured_logger, pool_and_threadedlogger |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question: but in delphi_utils
, we're only reexporting get_structured_logger
, so won't importing pool_and_threadedlogger
here fail?
@@ -1,255 +1,10 @@ | |||
"""Structured logger utility for creating JSON logs. | |||
"""Temporary migration compatibility file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note: we'll need a followup issue once we remove this file to make sure that other logger imports continue to work, e.g..
Closed for another approach (see comment here). |
Description
Refactor
delphi-utils
to depend ondelphi-logger
standalone repo.Changelog
logger.py
to the standalone delphi-logger repo.delphi-utils
and re-export it, so thatfrom delphi-utils import get_structured_logger
still works.Fixes