Happy for the iPhone drop warranty right now #droppedit
Entries for #I
← first ← previous page 22 of 60 next → last →
Easy way to temporarily kill logging in Python
Ever want to just turn off that logger for a while in Python? Maybe while running tests or debugging? Even the CRITICAL messages?
Notice that the logging level contants (logging.DEBUG etc) actually represent numeric values:
Level Numeric value
CRITICAL 50
ERROR 40
WARNING 30
INFO 20
DEBUG 10
NOTSET 0
On a whim I tried:
logging.getLogger('logger_to_turn_off').setLevel(100)
And bam, no logging, even the CRITICAL messages. Yes, most of you python nerds knew this, but I didn't, so I learned something at least!
Ever want to fly internet spaceships in the biggest universe around? EVE is expanding in mere weeks. https://t.co/KrThsanE4r #eveonline
RT @markboxapp: We'd never tell you to, but if you feel the need to cancel your @markboxapp account, you now can from the account page #i…
OH on IRC: "Why's my redbull warm? And I need a prosecco flavored version to match this braised Berkshire Pork Belly #gamerfoodie
Part of the problem, of course, is that I never learned to touch type, then I learned perl #twostrikes
I'll be honest: I appreciate drama but don't really grasp the obsession with violent murdering criminals as heroes #sopranos #breakingbad
← first ← previous page 22 of 60 next → last →