geekmaster / eyefiserver2

Automatically exported from code.google.com/p/eyefiserver2
0 stars 0 forks source link

Exceptions are not logged #11

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Exceptions should be logged to the log file.

Original issue reported on code.google.com by davidgrant on 25 Jun 2012 at 5:04

GoogleCodeExporter commented 8 years ago
I tried to fix this quickly by overriding the log_message method of 
BaseHttpRequestHandler but it didn't work. :-(

Original comment by davidgrant on 25 Jun 2012 at 6:06

GoogleCodeExporter commented 8 years ago
Try to implement a handler inside a EyeFiServer class, as it seems only this 
class instance is daemonized. Just a guess inspired by signal handling problems.

Original comment by duke...@gmail.com on 29 Jun 2012 at 5:13

GoogleCodeExporter commented 8 years ago
Changed STDERR of a daemon from /dev/null to a log file, so now exception 
tracebacks are logged. Is that what you was trying to do?

Original comment by duke...@gmail.com on 3 Jul 2012 at 1:24

GoogleCodeExporter commented 8 years ago
This doesn't seem to be fixed. I had another exception being thrown today 
because I was missing an option in the config file but it wasn't being printed 
to the log.

Original comment by davidgrant on 20 Aug 2012 at 3:52

GoogleCodeExporter commented 8 years ago

Original comment by davidgrant on 20 Aug 2012 at 3:52

GoogleCodeExporter commented 8 years ago
I've wrapped do_POST in a try: except: but I'm sure there are some other places 
where this kind of thing needs to be done.

Original comment by davidgrant on 20 Aug 2012 at 4:36

GoogleCodeExporter commented 8 years ago
I also did this for do_GET as well. Could be other places where we need to do 
this. I'll leave this open for now.

Original comment by davidgrant on 20 Aug 2012 at 10:02