-
Notifications
You must be signed in to change notification settings - Fork 112
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
Refactor logging #11332
Refactor logging #11332
Conversation
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.
I'll reserve comments about the functionality of this PR until I see it demonstrated.
@@ -2,7 +2,7 @@ | |||
from pathlib import Path | |||
|
|||
import pytest | |||
from broker import Broker | |||
from broker.broker import Broker |
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.
Raised a question about this in the Broker PR, so I won't repeat it further in this PR, but this is likely a blocker for me.
@@ -24,6 +25,7 @@ def allow_repo_discovery(target_sat): | |||
@pytest.fixture(autouse=True, scope="session") | |||
def relax_bfa(session_target_sat): | |||
"""Relax BFA protection against failed login attempts""" | |||
logger.info('xxx inside relax_bfa fixture body') |
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.
natural language is typically easy enough to differentiate in logs without trigger characters
logger.info('xxx inside relax_bfa fixture body') | |
logger.info('inside relax_bfa fixture body') |
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.
sorry, those are my working and debugging logs, so i can easily find and remove them when i'm finished :D
@@ -29,6 +29,7 @@ def test_positive_ping(target_sat): | |||
|
|||
:expectedresults: Overall and individual services status should be 'ok'. | |||
""" | |||
logger.info("xxx inside test body") |
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.
same comment as before
logger.info("xxx inside test body") | |
logger.info("inside test body") |
This pull request has not been updated in the past 45 days. |
This pull request is now being closed after stale warnings. |
The idea is to unify and add a proper structure to the logs.
logzero
and relying purely on nativelogging
library