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!
Been thinking about my own assumptions/behaviors re: non-white-males in tech. Uncomfortable, but not uncomfortable enough yet.
RT @nrrrdcore: People who have attacked myself, @shanley & other women like us, this is what it's like to be on the other side: http://t.co…
@siracusa @marcoarment love jumpcut for the do-one-thing-well-ness of it.
Idea: LinkedIn Disclaimers
Fun little idea: a blog disclaimer generator based on your current LinkedIn profile.
> "My opinions on [current industry] are my own and not those of [current employer]"
WTB: Auto-disclaimer based on LinkedIn: "I am employed by <employer> in <industries>; my opinions are my own".
@agiletortoise and VERY lean. (And over $9/lb yikes)
@agiletortoise cooked a bison steak for the wife yesterday - seared each side and then basically baked each side, came out GREAT
@bridgetkromhout @allspaw not that anyone cares but I've always used the Hobbit-like "OpsFolk"
@GlennF talk to #eveonline players for tips on harvesting tears.
RT @ettay: SO INTO THIS. RT @_DownToEarth: Laverne Cox as Wonder Woman. http://t.co/rlqy6sNvsT H/T @buhny
RT @howardtayler: Puns happen because bad people exploit security flaws in language.
Hey I have a blog
Wow, long time no blog. What's going on here?
My brother is graduating top of his class from Full Sail today. Since I can't be in Florida, watching the live stream. Go @seanivy!
Chimay #trippel #notchimay http://t.co/IWHXma6IUK
@mrgan shareware, and perl modules
@AScalzi98 the sky is awake.
@mattgemmell (dubbed) your camelCase is no match for my screaming_snake_case!!!
Horror movie set http://t.co/ZK3gw9xY4G
When the dental tech looks at your X-ray and issues a genuine "oh my gosh". That is not good.