These are chat archives for ipython/ipython

23rd
Nov 2014
Kyle Kelley
@rgbkrk
Nov 23 2014 04:49
Is there any way to check the debug flag setting within a Handler?
Noticed no self.debug in our AuthenticatedHandler
nor in self.settings
Thomas Kluyver
@takluyver
Nov 23 2014 05:25
I think --debug is just used to set up the logging level. if you log.debug(...), it will only show up if the --debug flag is passed.
Kyle Kelley
@rgbkrk
Nov 23 2014 05:25
yeah
I used log.debug
but that's not what I mean
I wanted to conditionally add headers
To the AuthenticatedHandler
Thomas Kluyver
@takluyver
Nov 23 2014 05:27
I don't think the current effects of the debug flag provide an easy way to do that.
Kyle Kelley
@rgbkrk
Nov 23 2014 05:27
Yeah
After tinkering with it a bit, I opted to just trim out the code I was introducing that would have used it.
Instead just documenting it a bit
Glad I got this working tonight. :D
Part of it was done while watching The Notebook
;)
The second half of the film I set the laptop down. :P
Thomas Kluyver
@takluyver
Nov 23 2014 05:35
:)
we told you about the email Min got from someone thinking that he was the director of that film?
Kyle Kelley
@rgbkrk
Nov 23 2014 05:40
He does have a few profile pictures where he's wearing a cap like in the film.
Still not sure if we work with Ryan Gosling.