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

Rollover + backup for dbt.log #4405

Merged
merged 1 commit into from
Dec 2, 2021
Merged

Rollover + backup for dbt.log #4405

merged 1 commit into from
Dec 2, 2021

Conversation

jtcohen6
Copy link
Contributor

@jtcohen6 jtcohen6 commented Dec 2, 2021

resolves #4404

  • Configs available from the good ol' built-in RotatingFileHandler. Match the old values exactly
  • We also used to mess with delay + emit, to buffer events before the log file location was known/ready. It all makes sense! The way we're doing it now forces us to be much more intentional about when configuration happens, which is a net positive
  • Confirmed this worked locally by setting maxSize=1000 + dbt run :)

@cla-bot cla-bot bot added the cla:yes label Dec 2, 2021
Copy link
Contributor

@nathaniel-may nathaniel-may left a comment

Choose a reason for hiding this comment

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

Amazing

@jtcohen6 jtcohen6 mentioned this pull request Dec 2, 2021
26 tasks
@jtcohen6 jtcohen6 merged commit ce9ac8e into main Dec 2, 2021
@jtcohen6 jtcohen6 deleted the logging-rollover-backups branch December 2, 2021 21:10
jtcohen6 added a commit that referenced this pull request Dec 2, 2021
jtcohen6 added a commit that referenced this pull request Dec 2, 2021
leahwicz pushed a commit that referenced this pull request Dec 2, 2021
* A few final logging touch-ups (#4388)

* Rm unused events, per #4104

* More structured ConcurrencyLine

* Replace \n prefixes with EmptyLine

* Reimplement ui.warning_tag to centralize logic

* Use warning_tag for deprecations too

* Rm more unused event types

* Exclude EmptyLine from json logs

* loglines are not always created by events (#4406)

Co-authored-by: Nathaniel May <[email protected]>

* Rollover + backup for dbt.log (#4405)

Co-authored-by: Nathaniel May <[email protected]>
iknox-fa pushed a commit that referenced this pull request Feb 8, 2022
automatic commit by git-black, original commits:
  ce9ac8e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dbt.log should rollover at 10 mb, as before
2 participants