IRC log of #zope for Tuesday, 2012-11-13

*** kosh_ has joined #zope00:02
*** supton has quit IRC00:02
*** supton_ is now known as supton00:02
*** kosh_ is now known as kosh00:04
*** River_Rat has joined #zope00:12
*** River-Rat has quit IRC00:15
*** River-Rat has joined #zope00:30
*** River_Rat has quit IRC00:32
*** TresEquis has quit IRC00:49
*** fredvd has quit IRC00:58
*** supton has quit IRC01:15
*** supton has joined #zope01:15
*** alecm has quit IRC01:20
*** chaoflow has quit IRC01:20
*** alecm has joined #zope01:29
*** chaoflow has joined #zope01:29
*** m8 has quit IRC01:31
*** fdrake has quit IRC01:31
*** supton_ has joined #zope01:34
*** _mup_ has quit IRC01:35
*** supton has quit IRC01:35
*** _mup_ has joined #zope01:38
*** supton_ has quit IRC01:38
*** J1m has quit IRC01:51
*** kosh has quit IRC01:54
*** _mup_ has quit IRC02:00
*** _mup_ has joined #zope02:00
*** sp0cksbeard has quit IRC02:13
*** avn has quit IRC02:22
*** mr_jolly has quit IRC02:45
*** Spanktar has quit IRC03:11
*** daMaestro has quit IRC03:22
*** tiwula has quit IRC03:33
*** avn has joined #zope03:43
*** kosh has joined #zope03:43
*** River_Rat has joined #zope03:43
*** River-Rat has quit IRC03:46
*** mr_jolly has joined #zope04:27
*** River-Rat has joined #zope05:06
*** River_Rat has quit IRC05:08
*** River_Rat has joined #zope05:30
*** River-Rat has quit IRC05:32
*** nande has quit IRC05:48
*** Arfrever has joined #zope05:56
*** [Arfrever] has joined #zope06:09
*** mr_jolly has quit IRC06:15
*** fdrake has joined #zope06:21
*** kosh has quit IRC06:35
*** Arfrever has quit IRC07:22
*** KageSenshi has quit IRC07:47
*** KageSenshi has joined #zope07:47
*** __mac__ has joined #zope08:01
*** __mac__ has quit IRC08:09
*** tisto has joined #zope08:18
*** menesis has joined #zope08:30
*** zagy has joined #zope09:03
*** avoinea has joined #zope09:09
*** miano has quit IRC09:39
*** Arfrever has joined #zope09:47
*** MrTango has joined #zope09:52
*** giacomos has joined #zope10:11
*** __mac__ has joined #zope10:21
*** giacomos has quit IRC10:25
*** menesis has quit IRC10:25
*** giacomos has joined #zope10:27
*** jakke has joined #zope10:29
jakkeHi guys, I'm trying to add extra loggers to my zope app through the buildout.cfg file10:39
jakkePlenty of places that describe how to tune the event-log and access-log10:39
jakkebut not how to add new loggers, any suggestions where to look? I don't want to spoil my event log with xml, but I do want logging of my incoming xml10:39
*** maurits has joined #zope10:40
jakkethat's why I defined this extra logger in my code10:40
*** Spanktar has joined #zope10:47
*** Spanktar has quit IRC10:49
*** zagy has quit IRC11:20
*** eperez has joined #zope11:31
*** agroszer has joined #zope11:32
*** evilbungle has quit IRC11:35
*** goschtl has joined #zope11:38
*** mr_jolly has joined #zope11:44
*** fredvd has joined #zope11:49
fredvdI'm running zope under supervisord and noticed this week that redirected stdout output is buffered and only available after a long delay in the supervisor captured log file. See also https://github.com/Supervisor/supervisor/issues/13 .  I have no clue if python -u would also mess up other stuff (streamd unbufffered as suggested in the ticket. Is this something I could change in Zope config?11:51
*** miano has joined #zope11:55
*** zagy has joined #zope11:56
*** evilbungle has joined #zope11:58
*** fredvd has quit IRC12:01
*** fredvd has joined #zope12:01
*** fredvd has quit IRC12:06
*** River_Rat has quit IRC12:08
*** fredvd has joined #zope12:10
*** zagy has quit IRC12:12
*** maurits has quit IRC12:12
*** Arfrever has quit IRC12:12
*** avn has quit IRC12:12
*** _mup_ has quit IRC12:12
*** betabug has quit IRC12:12
*** mitchell`off has quit IRC12:12
*** kiorky has quit IRC12:12
*** zagy has joined #zope12:15
*** maurits has joined #zope12:15
*** Arfrever has joined #zope12:15
*** avn has joined #zope12:15
*** _mup_ has joined #zope12:15
*** mitchell`off has joined #zope12:15
*** kiorky has joined #zope12:15
*** betabug has joined #zope12:15
*** jakke has left #zope12:18
*** evilbungle has quit IRC12:20
*** goschtl has quit IRC12:20
*** jham has quit IRC12:20
*** zagy has quit IRC12:20
*** maurits has quit IRC12:20
*** Arfrever has quit IRC12:20
*** avn has quit IRC12:20
*** _mup_ has quit IRC12:20
*** betabug has quit IRC12:20
*** mitchell`off has quit IRC12:20
*** kiorky has quit IRC12:20
*** mr_jolly has quit IRC12:20
*** alecm has quit IRC12:20
*** chaoflow has quit IRC12:20
*** fdrake has quit IRC12:20
*** Deathspawn has quit IRC12:20
*** JT has quit IRC12:20
*** f10w has quit IRC12:20
*** rmatte has quit IRC12:20
*** roq_ has quit IRC12:20
*** supersheep has quit IRC12:20
*** Wu has quit IRC12:20
*** gawel has quit IRC12:20
*** purserj has quit IRC12:20
*** sm has quit IRC12:20
*** yvl has quit IRC12:20
*** [Arfrever] has quit IRC12:20
*** benbangert has quit IRC12:20
*** __mac__ has quit IRC12:20
*** avoinea has quit IRC12:20
*** bosim has quit IRC12:20
*** eperez has quit IRC12:20
*** giacomos has quit IRC12:20
*** polysix has quit IRC12:20
*** ajmitch has quit IRC12:20
*** bpgoldsb has quit IRC12:20
*** Moo^_^ has quit IRC12:20
*** mgedmin has quit IRC12:20
*** kimrhh has quit IRC12:20
*** supersheep_ has quit IRC12:20
*** iElectric has quit IRC12:20
*** ivan` has quit IRC12:20
*** RichyB has joined #zope12:21
*** benbangert has joined #zope12:21
*** jham has joined #zope12:21
*** mgedmin has joined #zope12:21
*** Deathspawn has joined #zope12:21
*** ivan` has joined #zope12:21
*** iElectric has joined #zope12:21
*** Moo^_^ has joined #zope12:21
*** sm has joined #zope12:21
*** bosim has joined #zope12:21
*** purserj has joined #zope12:21
*** ajmitch has joined #zope12:21
*** kimrhh has joined #zope12:21
*** gawel has joined #zope12:21
*** Wu has joined #zope12:21
*** f10w has joined #zope12:21
*** JT has joined #zope12:21
*** rmatte has joined #zope12:21
*** bpgoldsb has joined #zope12:21
*** supersheep has joined #zope12:21
*** polysix has joined #zope12:21
*** yvl has joined #zope12:21
*** roq_ has joined #zope12:21
*** supersheep_ has joined #zope12:21
*** alecm has joined #zope12:21
*** chaoflow has joined #zope12:21
*** [Arfrever] has joined #zope12:21
*** fdrake has joined #zope12:21
*** avoinea has joined #zope12:21
*** __mac__ has joined #zope12:21
*** giacomos has joined #zope12:21
*** eperez has joined #zope12:21
*** goschtl has joined #zope12:21
*** mr_jolly has joined #zope12:21
*** evilbungle has joined #zope12:21
*** zagy has joined #zope12:21
*** maurits has joined #zope12:21
*** Arfrever has joined #zope12:21
*** avn has joined #zope12:21
*** _mup_ has joined #zope12:21
*** mitchell`off has joined #zope12:21
*** kiorky has joined #zope12:21
*** betabug has joined #zope12:21
*** RiverRat has joined #zope12:22
*** roq_ has quit IRC12:23
*** roq_ has joined #zope12:23
*** miano has quit IRC12:25
*** agroszer has quit IRC12:25
*** MrTango has quit IRC12:25
*** tisto has quit IRC12:25
*** zenwryly has quit IRC12:26
*** roq_ has quit IRC12:26
*** RiverRat has quit IRC12:26
*** mr_jolly has quit IRC12:26
*** alecm has quit IRC12:26
*** chaoflow has quit IRC12:26
*** fdrake has quit IRC12:26
*** Deathspawn has quit IRC12:26
*** JT has quit IRC12:26
*** f10w has quit IRC12:26
*** rmatte has quit IRC12:26
*** evilbungle has quit IRC12:26
*** goschtl has quit IRC12:26
*** jham has quit IRC12:26
*** supersheep has quit IRC12:26
*** Wu has quit IRC12:26
*** gawel has quit IRC12:26
*** purserj has quit IRC12:26
*** sm has quit IRC12:26
*** yvl has quit IRC12:26
*** [Arfrever] has quit IRC12:26
*** benbangert has quit IRC12:26
*** __mac__ has quit IRC12:26
*** avoinea has quit IRC12:26
*** bosim has quit IRC12:26
*** eperez has quit IRC12:26
*** giacomos has quit IRC12:26
*** polysix has quit IRC12:26
*** ajmitch has quit IRC12:26
*** bpgoldsb has quit IRC12:26
*** Moo^_^ has quit IRC12:26
*** mgedmin has quit IRC12:26
*** kimrhh has quit IRC12:26
*** RichyB has quit IRC12:26
*** supersheep_ has quit IRC12:26
*** iElectric has quit IRC12:26
*** ivan` has quit IRC12:26
*** zagy has quit IRC12:26
*** maurits has quit IRC12:26
*** Arfrever has quit IRC12:26
*** avn has quit IRC12:26
*** _mup_ has quit IRC12:26
*** betabug has quit IRC12:26
*** mitchell`off has quit IRC12:26
*** kiorky has quit IRC12:26
*** tisto has joined #zope12:27
*** MrTango has joined #zope12:27
*** agroszer has joined #zope12:27
*** miano has joined #zope12:27
*** roq_ has joined #zope12:27
*** RiverRat has joined #zope12:27
*** zenwryly has joined #zope12:27
*** RichyB has joined #zope12:27
*** benbangert has joined #zope12:27
*** jham has joined #zope12:27
*** mgedmin has joined #zope12:27
*** Deathspawn has joined #zope12:27
*** ivan` has joined #zope12:27
*** iElectric has joined #zope12:27
*** Moo^_^ has joined #zope12:27
*** sm has joined #zope12:27
*** bosim has joined #zope12:27
*** purserj has joined #zope12:27
*** ajmitch has joined #zope12:27
*** kimrhh has joined #zope12:27
*** gawel has joined #zope12:27
*** Wu has joined #zope12:27
*** f10w has joined #zope12:27
*** JT has joined #zope12:27
*** rmatte has joined #zope12:27
*** bpgoldsb has joined #zope12:27
*** supersheep has joined #zope12:27
*** polysix has joined #zope12:27
*** yvl has joined #zope12:27
*** supersheep_ has joined #zope12:27
*** alecm has joined #zope12:27
*** chaoflow has joined #zope12:27
*** [Arfrever] has joined #zope12:27
*** fdrake has joined #zope12:27
*** avoinea has joined #zope12:27
*** __mac__ has joined #zope12:27
*** giacomos has joined #zope12:27
*** eperez has joined #zope12:27
*** goschtl has joined #zope12:27
*** mr_jolly has joined #zope12:27
*** evilbungle has joined #zope12:27
*** maurits has joined #zope12:27
*** Arfrever has joined #zope12:27
*** avn has joined #zope12:27
*** _mup_ has joined #zope12:27
*** mitchell`off has joined #zope12:27
*** kiorky has joined #zope12:27
*** betabug has joined #zope12:27
*** JT has quit IRC12:28
*** f10w has quit IRC12:28
*** JT has joined #zope12:28
*** f10w has joined #zope12:28
*** rmatte has quit IRC12:30
*** rmatte has joined #zope12:30
*** mcdonc has quit IRC12:56
*** mcdonc has joined #zope12:56
*** mcdonc has quit IRC13:21
mgedminfredvd, AFAIU it's a kernel limitation13:27
mgedminall pipes are buffered13:27
mgedminif you want unbuffered logging, log to a file, or convince supervisor to use pseudottys13:28
mgedmin(I mention that second option as a theoretical possibility -- no clue if supervisor supports that, or even if that would be a good idea)13:28
fredvdmgedmin: ok, thanks for the info!13:29
mgedminhm, this is a good argument against one of the factors of http://www.12factor.net/13:29
mgedminmaybe heroku does use ptys?13:29
fredvdmgedmin: you mean the "It should not attempt to write to or manage logfiles. Instead, each running process writes its event stream, unbuffered, to stdout. "13:30
mgedminyes13:30
*** fdrake has quit IRC13:30
fredvdif I look at #13 from supervisord: maybe Zope should flush stdout after every write, but that is probably a resource hog.13:30
fredvdThe reason I'm running into all of this is because I wanted to do a kill -USR1 to get a backtrace of running threads from a zope server.13:31
mgedminhttp://unix.stackexchange.com/questions/25372/turn-off-buffering-in-pipe13:31
mgedminflushing stdout is not sufficient -- the 4KB kernel pipe buffer is always there13:31
mgedminhm... maybe I'm wrong?13:32
fredvdOnly to find out that in production it doesn't work. so the signal handler could be modified to do the flush. Or push always 4Kb out. :-013:32
mgedminpython -c 'import time, sys; print "foo"; sys.stdout.flush(); time.sleep(1); print "bar"'|cat13:33
mgedminok, experiment shows I'm Wrong Wrong Wrong13:33
mgedminif you flush, the data does not get stuck in the pipe buffer13:33
fredvdOk, so patching zope's usr1 handler to flush after dumping stack traces would suffice then.13:34
mgedminyep13:34
mgedminshould13:34
*** tisto is now known as tisto|lunch13:34
mgedmintell me how it goes please :)13:34
fredvdI'll see if I can forward it to a colleague, I normally don't touch Zope on the code level. At least I now know where the root cause is.13:36
mgedminapparently you can fix it without touching Zope code13:36
fredvdby using the unbuffer?13:36
mgedminif you run it wrapped with expect_unbuffer13:36
mgedminyes13:36
fredvdYes, but it's the same as the python -u option: I'd have no clue of other side-effects.13:37
mgedmin(that would be the "make supervisor use pseudoterminals" options, implemented through an external tool)13:37
fredvdI only want stdout unbuffered, not anything else inside the process that uses buffers.13:37
mgedminexpect_unbuffer only affects stdout (and stderr)13:38
mgedminat least, that's what I'd expect13:38
fredvdWell that's something I can test. ;-13:41
fredvd;-)13:41
*** LeoRochael has joined #zope13:52
*** evilbungle has quit IRC13:52
*** J1m has joined #zope13:53
*** evilbungle has joined #zope13:54
*** evilbungle has quit IRC13:59
*** evilbungle has joined #zope14:02
*** evilbungle_ has joined #zope14:03
*** evilbungle has quit IRC14:06
*** evilbungle_ is now known as evilbungle14:06
*** zagy has joined #zope14:11
*** goschtl_ has joined #zope14:16
*** goschtl has quit IRC14:18
*** goschtl_ is now known as goschtl14:18
*** miano has quit IRC14:21
*** J1m has quit IRC14:31
*** J1m has joined #zope14:32
*** evilbungle has quit IRC14:34
*** evilbungle has joined #zope14:34
*** evilbungle has quit IRC14:34
*** evilbungle has joined #zope14:36
*** miano has joined #zope14:38
*** J1m has quit IRC14:41
*** mr_jolly has quit IRC14:49
*** mr_jolly has joined #zope14:49
*** mitchell`off is now known as mitchell`14:54
*** mr_jolly has quit IRC15:02
*** mr_jolly has joined #zope15:03
*** benji has joined #zope15:10
*** miano has quit IRC15:21
*** miano has joined #zope15:22
*** roq_ has left #zope15:31
*** River_Rat has joined #zope15:41
*** RiverRat has quit IRC15:43
*** fdrake has joined #zope15:44
*** fredvd has quit IRC15:48
*** J1m has joined #zope15:57
*** River-Rat has joined #zope16:04
*** River_Rat has quit IRC16:07
*** supersheep_ has quit IRC16:17
*** supersheep_ has joined #zope16:17
*** sp0cksbeard has joined #zope16:18
*** mr_jolly has quit IRC16:28
*** fredvd has joined #zope16:35
*** mr_jolly has joined #zope16:42
*** menesis has joined #zope16:43
*** tisto|lunch is now known as tisto16:52
*** River_Rat has joined #zope16:59
*** River-Rat has quit IRC17:01
*** fredvd has quit IRC17:14
*** tiwula has joined #zope17:16
*** agroszer has quit IRC17:33
*** mr_jolly has quit IRC17:38
*** __mac__ has quit IRC17:48
*** daMaestro has joined #zope17:58
*** giacomos has quit IRC18:03
*** maurits has quit IRC18:10
*** MrTango has quit IRC18:15
*** mr_jolly has joined #zope18:20
*** avoinea has quit IRC18:23
*** evilbungle has quit IRC18:32
*** fredvd has joined #zope18:36
*** supton has joined #zope18:38
*** zagy has quit IRC18:42
*** kosh has joined #zope18:43
*** goschtl has quit IRC18:45
koshhail freaks!18:46
*** mr_jolly has quit IRC19:32
*** Pumukel has joined #zope19:39
*** River-Rat has joined #zope19:48
*** eperez has quit IRC19:51
*** River_Rat has quit IRC19:51
*** tisto has quit IRC20:01
*** supton has quit IRC20:06
*** agroszer has joined #zope20:06
*** zagy has joined #zope20:14
*** menesis has quit IRC20:35
*** mitchell` is now known as mitchell`off20:38
*** Spanktar has joined #zope21:17
*** agroszer has quit IRC21:18
*** mcdonc has joined #zope21:18
*** les_sylvains has joined #zope21:25
*** fredvd has quit IRC21:28
*** zagy has quit IRC21:51
betabugsm: hey there!21:57
betabugsm: sorry for the delay, I'm running for a deadline here a bit, will send that email in a few days21:57
*** thetet has joined #zope22:00
*** RichyB has quit IRC22:02
smhey betabug, no problem22:06
smbusy here too22:06
*** m8 has joined #zope23:14
*** m8 has quit IRC23:25
*** m8 has joined #zope23:26
*** zagy has joined #zope23:29
*** roq_ has joined #zope23:32
*** m8 has quit IRC23:32
*** m8 has joined #zope23:33
*** zagy has quit IRC23:34
*** LeoRochael has quit IRC23:38
*** motto has joined #zope23:38
*** les_sylvains has quit IRC23:38
*** m8 has quit IRC23:39
*** roq_ has left #zope23:44
*** motto has quit IRC23:44
*** m8 has joined #zope23:53
*** motto has joined #zope23:57
*** m8 has quit IRC23:57

Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!