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

set up dedicated logger to retain CLI stdout #246

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

rreinoldsc
Copy link
Contributor

@rreinoldsc rreinoldsc commented May 3, 2024

Configure a logger to retain same CLI UX for agent with structured logging

@rreinoldsc rreinoldsc marked this pull request as draft May 3, 2024 16:44
@@ -90,6 +90,10 @@ def main() -> None:
)
)

agent_logger = logging.getLogger(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some notes:

  • This is set here and passed in bc logger must be aware of logging_cfg
  • We want a logger name that is not the agent's name to avoid submodules inheriting the INFO level

Copy link

codecov bot commented May 3, 2024

Codecov Report

Attention: Patch coverage is 75.00000% with 6 lines in your changes are missing coverage. Please review.

Project coverage is 66.18%. Comparing base (fdfe9b4) to head (0b8a7aa).

Files Patch % Lines
great_expectations_cloud/agent/agent.py 85.00% 3 Missing ⚠️
great_expectations_cloud/agent/cli.py 0.00% 2 Missing ⚠️
great_expectations_cloud/agent/run.py 50.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main     #246       +/-   ##
===========================================
- Coverage   84.71%   66.18%   -18.54%     
===========================================
  Files          25       25               
  Lines         962      961        -1     
===========================================
- Hits          815      636      -179     
- Misses        147      325      +178     
Flag Coverage Δ
3.10 ?
3.11 ?
3.8 ?
3.9 ?
integration 66.18% <75.00%> (-0.14%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rreinoldsc rreinoldsc requested a review from Kilo59 May 3, 2024 17:19
Copy link
Member

@Kilo59 Kilo59 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rreinoldsc are you still waiting on my review?

@rreinoldsc
Copy link
Contributor Author

@rreinoldsc are you still waiting on my review?

@Kilo59 I'm going to rework this, and then I'll ping you for review

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 this pull request may close these issues.

3 participants