Skip to content

wip: Adding DEBUG_INFO setting - #561

Closed
noviluni wants to merge 3 commits into
scrapinghub:masterfrom
noviluni:add_debug_info_setting
Closed

noviluni wants to merge 3 commits into
scrapinghub:masterfrom
noviluni:add_debug_info_setting

Conversation

@noviluni

@noviluni noviluni commented Sep 5, 2019

Copy link
Copy Markdown
Contributor

Just a PoC to illustrate issue: #560

@codecov

codecov Bot commented Sep 5, 2019 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.14%. Comparing base (f4b493f) to head (4e66b53).
⚠️ Report is 521 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #561      +/-   ##
==========================================
+ Coverage   95.12%   95.14%   +0.01%     
==========================================
  Files         302      302              
  Lines        2503     2513      +10     
==========================================
+ Hits         2381     2391      +10     
  Misses        122      122              

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@noviluni
noviluni force-pushed the add_debug_info_setting branch from ac3f581 to 412e6a2 Compare September 5, 2019 16:15
@noviluni noviluni changed the title wip: first implementation wip: Adding DEBUG_INFO setting Sep 6, 2019
@asadurski

Copy link
Copy Markdown
Member

Interesting! This would definitely be helpful when filing new issues.
Please keep in mind to avoid impact to performance when DEBUG is False.

@noviluni
noviluni force-pushed the add_debug_info_setting branch from d541eb9 to 4e66b53 Compare January 17, 2020 16:54
@noviluni

Copy link
Copy Markdown
Contributor Author

Waiting to merge this: #603 before continuing

@noviluni

noviluni commented Sep 8, 2020

Copy link
Copy Markdown
Contributor Author

I think once we implement this: #778 this will be trivial, as we only have to log the information from the DateData object.

@noviluni noviluni mentioned this pull request Sep 8, 2020
@AdrianAtZyte

Copy link
Copy Markdown
Member

I think the way to go for #560 would be logger.debug() calls through the standard logging module rather than a new setting and print(), which also avoids any performance impact when debug logging is off. The locale is already available in DateData since #778, and #729 covers exposing the missing date parts.

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