*** kosh_ has joined #zope | 00:02 | |
*** supton has quit IRC | 00:02 | |
*** supton_ is now known as supton | 00:02 | |
*** kosh_ is now known as kosh | 00:04 | |
*** River_Rat has joined #zope | 00:12 | |
*** River-Rat has quit IRC | 00:15 | |
*** River-Rat has joined #zope | 00:30 | |
*** River_Rat has quit IRC | 00:32 | |
*** TresEquis has quit IRC | 00:49 | |
*** fredvd has quit IRC | 00:58 | |
*** supton has quit IRC | 01:15 | |
*** supton has joined #zope | 01:15 | |
*** alecm has quit IRC | 01:20 | |
*** chaoflow has quit IRC | 01:20 | |
*** alecm has joined #zope | 01:29 | |
*** chaoflow has joined #zope | 01:29 | |
*** m8 has quit IRC | 01:31 | |
*** fdrake has quit IRC | 01:31 | |
*** supton_ has joined #zope | 01:34 | |
*** _mup_ has quit IRC | 01:35 | |
*** supton has quit IRC | 01:35 | |
*** _mup_ has joined #zope | 01:38 | |
*** supton_ has quit IRC | 01:38 | |
*** J1m has quit IRC | 01:51 | |
*** kosh has quit IRC | 01:54 | |
*** _mup_ has quit IRC | 02:00 | |
*** _mup_ has joined #zope | 02:00 | |
*** sp0cksbeard has quit IRC | 02:13 | |
*** avn has quit IRC | 02:22 | |
*** mr_jolly has quit IRC | 02:45 | |
*** Spanktar has quit IRC | 03:11 | |
*** daMaestro has quit IRC | 03:22 | |
*** tiwula has quit IRC | 03:33 | |
*** avn has joined #zope | 03:43 | |
*** kosh has joined #zope | 03:43 | |
*** River_Rat has joined #zope | 03:43 | |
*** River-Rat has quit IRC | 03:46 | |
*** mr_jolly has joined #zope | 04:27 | |
*** River-Rat has joined #zope | 05:06 | |
*** River_Rat has quit IRC | 05:08 | |
*** River_Rat has joined #zope | 05:30 | |
*** River-Rat has quit IRC | 05:32 | |
*** nande has quit IRC | 05:48 | |
*** Arfrever has joined #zope | 05:56 | |
*** [Arfrever] has joined #zope | 06:09 | |
*** mr_jolly has quit IRC | 06:15 | |
*** fdrake has joined #zope | 06:21 | |
*** kosh has quit IRC | 06:35 | |
*** Arfrever has quit IRC | 07:22 | |
*** KageSenshi has quit IRC | 07:47 | |
*** KageSenshi has joined #zope | 07:47 | |
*** __mac__ has joined #zope | 08:01 | |
*** __mac__ has quit IRC | 08:09 | |
*** tisto has joined #zope | 08:18 | |
*** menesis has joined #zope | 08:30 | |
*** zagy has joined #zope | 09:03 | |
*** avoinea has joined #zope | 09:09 | |
*** miano has quit IRC | 09:39 | |
*** Arfrever has joined #zope | 09:47 | |
*** MrTango has joined #zope | 09:52 | |
*** giacomos has joined #zope | 10:11 | |
*** __mac__ has joined #zope | 10:21 | |
*** giacomos has quit IRC | 10:25 | |
*** menesis has quit IRC | 10:25 | |
*** giacomos has joined #zope | 10:27 | |
*** jakke has joined #zope | 10:29 | |
jakke | Hi guys, I'm trying to add extra loggers to my zope app through the buildout.cfg file | 10:39 |
---|---|---|
jakke | Plenty of places that describe how to tune the event-log and access-log | 10:39 |
jakke | but 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 xml | 10:39 |
*** maurits has joined #zope | 10:40 | |
jakke | that's why I defined this extra logger in my code | 10:40 |
*** Spanktar has joined #zope | 10:47 | |
*** Spanktar has quit IRC | 10:49 | |
*** zagy has quit IRC | 11:20 | |
*** eperez has joined #zope | 11:31 | |
*** agroszer has joined #zope | 11:32 | |
*** evilbungle has quit IRC | 11:35 | |
*** goschtl has joined #zope | 11:38 | |
*** mr_jolly has joined #zope | 11:44 | |
*** fredvd has joined #zope | 11:49 | |
fredvd | I'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 #zope | 11:55 | |
*** zagy has joined #zope | 11:56 | |
*** evilbungle has joined #zope | 11:58 | |
*** fredvd has quit IRC | 12:01 | |
*** fredvd has joined #zope | 12:01 | |
*** fredvd has quit IRC | 12:06 | |
*** River_Rat has quit IRC | 12:08 | |
*** fredvd has joined #zope | 12:10 | |
*** zagy has quit IRC | 12:12 | |
*** maurits has quit IRC | 12:12 | |
*** Arfrever has quit IRC | 12:12 | |
*** avn has quit IRC | 12:12 | |
*** _mup_ has quit IRC | 12:12 | |
*** betabug has quit IRC | 12:12 | |
*** mitchell`off has quit IRC | 12:12 | |
*** kiorky has quit IRC | 12:12 | |
*** zagy has joined #zope | 12:15 | |
*** maurits has joined #zope | 12:15 | |
*** Arfrever has joined #zope | 12:15 | |
*** avn has joined #zope | 12:15 | |
*** _mup_ has joined #zope | 12:15 | |
*** mitchell`off has joined #zope | 12:15 | |
*** kiorky has joined #zope | 12:15 | |
*** betabug has joined #zope | 12:15 | |
*** jakke has left #zope | 12:18 | |
*** evilbungle has quit IRC | 12:20 | |
*** goschtl has quit IRC | 12:20 | |
*** jham has quit IRC | 12:20 | |
*** zagy has quit IRC | 12:20 | |
*** maurits has quit IRC | 12:20 | |
*** Arfrever has quit IRC | 12:20 | |
*** avn has quit IRC | 12:20 | |
*** _mup_ has quit IRC | 12:20 | |
*** betabug has quit IRC | 12:20 | |
*** mitchell`off has quit IRC | 12:20 | |
*** kiorky has quit IRC | 12:20 | |
*** mr_jolly has quit IRC | 12:20 | |
*** alecm has quit IRC | 12:20 | |
*** chaoflow has quit IRC | 12:20 | |
*** fdrake has quit IRC | 12:20 | |
*** Deathspawn has quit IRC | 12:20 | |
*** JT has quit IRC | 12:20 | |
*** f10w has quit IRC | 12:20 | |
*** rmatte has quit IRC | 12:20 | |
*** roq_ has quit IRC | 12:20 | |
*** supersheep has quit IRC | 12:20 | |
*** Wu has quit IRC | 12:20 | |
*** gawel has quit IRC | 12:20 | |
*** purserj has quit IRC | 12:20 | |
*** sm has quit IRC | 12:20 | |
*** yvl has quit IRC | 12:20 | |
*** [Arfrever] has quit IRC | 12:20 | |
*** benbangert has quit IRC | 12:20 | |
*** __mac__ has quit IRC | 12:20 | |
*** avoinea has quit IRC | 12:20 | |
*** bosim has quit IRC | 12:20 | |
*** eperez has quit IRC | 12:20 | |
*** giacomos has quit IRC | 12:20 | |
*** polysix has quit IRC | 12:20 | |
*** ajmitch has quit IRC | 12:20 | |
*** bpgoldsb has quit IRC | 12:20 | |
*** Moo^_^ has quit IRC | 12:20 | |
*** mgedmin has quit IRC | 12:20 | |
*** kimrhh has quit IRC | 12:20 | |
*** supersheep_ has quit IRC | 12:20 | |
*** iElectric has quit IRC | 12:20 | |
*** ivan` has quit IRC | 12:20 | |
*** RichyB has joined #zope | 12:21 | |
*** benbangert has joined #zope | 12:21 | |
*** jham has joined #zope | 12:21 | |
*** mgedmin has joined #zope | 12:21 | |
*** Deathspawn has joined #zope | 12:21 | |
*** ivan` has joined #zope | 12:21 | |
*** iElectric has joined #zope | 12:21 | |
*** Moo^_^ has joined #zope | 12:21 | |
*** sm has joined #zope | 12:21 | |
*** bosim has joined #zope | 12:21 | |
*** purserj has joined #zope | 12:21 | |
*** ajmitch has joined #zope | 12:21 | |
*** kimrhh has joined #zope | 12:21 | |
*** gawel has joined #zope | 12:21 | |
*** Wu has joined #zope | 12:21 | |
*** f10w has joined #zope | 12:21 | |
*** JT has joined #zope | 12:21 | |
*** rmatte has joined #zope | 12:21 | |
*** bpgoldsb has joined #zope | 12:21 | |
*** supersheep has joined #zope | 12:21 | |
*** polysix has joined #zope | 12:21 | |
*** yvl has joined #zope | 12:21 | |
*** roq_ has joined #zope | 12:21 | |
*** supersheep_ has joined #zope | 12:21 | |
*** alecm has joined #zope | 12:21 | |
*** chaoflow has joined #zope | 12:21 | |
*** [Arfrever] has joined #zope | 12:21 | |
*** fdrake has joined #zope | 12:21 | |
*** avoinea has joined #zope | 12:21 | |
*** __mac__ has joined #zope | 12:21 | |
*** giacomos has joined #zope | 12:21 | |
*** eperez has joined #zope | 12:21 | |
*** goschtl has joined #zope | 12:21 | |
*** mr_jolly has joined #zope | 12:21 | |
*** evilbungle has joined #zope | 12:21 | |
*** zagy has joined #zope | 12:21 | |
*** maurits has joined #zope | 12:21 | |
*** Arfrever has joined #zope | 12:21 | |
*** avn has joined #zope | 12:21 | |
*** _mup_ has joined #zope | 12:21 | |
*** mitchell`off has joined #zope | 12:21 | |
*** kiorky has joined #zope | 12:21 | |
*** betabug has joined #zope | 12:21 | |
*** RiverRat has joined #zope | 12:22 | |
*** roq_ has quit IRC | 12:23 | |
*** roq_ has joined #zope | 12:23 | |
*** miano has quit IRC | 12:25 | |
*** agroszer has quit IRC | 12:25 | |
*** MrTango has quit IRC | 12:25 | |
*** tisto has quit IRC | 12:25 | |
*** zenwryly has quit IRC | 12:26 | |
*** roq_ has quit IRC | 12:26 | |
*** RiverRat has quit IRC | 12:26 | |
*** mr_jolly has quit IRC | 12:26 | |
*** alecm has quit IRC | 12:26 | |
*** chaoflow has quit IRC | 12:26 | |
*** fdrake has quit IRC | 12:26 | |
*** Deathspawn has quit IRC | 12:26 | |
*** JT has quit IRC | 12:26 | |
*** f10w has quit IRC | 12:26 | |
*** rmatte has quit IRC | 12:26 | |
*** evilbungle has quit IRC | 12:26 | |
*** goschtl has quit IRC | 12:26 | |
*** jham has quit IRC | 12:26 | |
*** supersheep has quit IRC | 12:26 | |
*** Wu has quit IRC | 12:26 | |
*** gawel has quit IRC | 12:26 | |
*** purserj has quit IRC | 12:26 | |
*** sm has quit IRC | 12:26 | |
*** yvl has quit IRC | 12:26 | |
*** [Arfrever] has quit IRC | 12:26 | |
*** benbangert has quit IRC | 12:26 | |
*** __mac__ has quit IRC | 12:26 | |
*** avoinea has quit IRC | 12:26 | |
*** bosim has quit IRC | 12:26 | |
*** eperez has quit IRC | 12:26 | |
*** giacomos has quit IRC | 12:26 | |
*** polysix has quit IRC | 12:26 | |
*** ajmitch has quit IRC | 12:26 | |
*** bpgoldsb has quit IRC | 12:26 | |
*** Moo^_^ has quit IRC | 12:26 | |
*** mgedmin has quit IRC | 12:26 | |
*** kimrhh has quit IRC | 12:26 | |
*** RichyB has quit IRC | 12:26 | |
*** supersheep_ has quit IRC | 12:26 | |
*** iElectric has quit IRC | 12:26 | |
*** ivan` has quit IRC | 12:26 | |
*** zagy has quit IRC | 12:26 | |
*** maurits has quit IRC | 12:26 | |
*** Arfrever has quit IRC | 12:26 | |
*** avn has quit IRC | 12:26 | |
*** _mup_ has quit IRC | 12:26 | |
*** betabug has quit IRC | 12:26 | |
*** mitchell`off has quit IRC | 12:26 | |
*** kiorky has quit IRC | 12:26 | |
*** tisto has joined #zope | 12:27 | |
*** MrTango has joined #zope | 12:27 | |
*** agroszer has joined #zope | 12:27 | |
*** miano has joined #zope | 12:27 | |
*** roq_ has joined #zope | 12:27 | |
*** RiverRat has joined #zope | 12:27 | |
*** zenwryly has joined #zope | 12:27 | |
*** RichyB has joined #zope | 12:27 | |
*** benbangert has joined #zope | 12:27 | |
*** jham has joined #zope | 12:27 | |
*** mgedmin has joined #zope | 12:27 | |
*** Deathspawn has joined #zope | 12:27 | |
*** ivan` has joined #zope | 12:27 | |
*** iElectric has joined #zope | 12:27 | |
*** Moo^_^ has joined #zope | 12:27 | |
*** sm has joined #zope | 12:27 | |
*** bosim has joined #zope | 12:27 | |
*** purserj has joined #zope | 12:27 | |
*** ajmitch has joined #zope | 12:27 | |
*** kimrhh has joined #zope | 12:27 | |
*** gawel has joined #zope | 12:27 | |
*** Wu has joined #zope | 12:27 | |
*** f10w has joined #zope | 12:27 | |
*** JT has joined #zope | 12:27 | |
*** rmatte has joined #zope | 12:27 | |
*** bpgoldsb has joined #zope | 12:27 | |
*** supersheep has joined #zope | 12:27 | |
*** polysix has joined #zope | 12:27 | |
*** yvl has joined #zope | 12:27 | |
*** supersheep_ has joined #zope | 12:27 | |
*** alecm has joined #zope | 12:27 | |
*** chaoflow has joined #zope | 12:27 | |
*** [Arfrever] has joined #zope | 12:27 | |
*** fdrake has joined #zope | 12:27 | |
*** avoinea has joined #zope | 12:27 | |
*** __mac__ has joined #zope | 12:27 | |
*** giacomos has joined #zope | 12:27 | |
*** eperez has joined #zope | 12:27 | |
*** goschtl has joined #zope | 12:27 | |
*** mr_jolly has joined #zope | 12:27 | |
*** evilbungle has joined #zope | 12:27 | |
*** maurits has joined #zope | 12:27 | |
*** Arfrever has joined #zope | 12:27 | |
*** avn has joined #zope | 12:27 | |
*** _mup_ has joined #zope | 12:27 | |
*** mitchell`off has joined #zope | 12:27 | |
*** kiorky has joined #zope | 12:27 | |
*** betabug has joined #zope | 12:27 | |
*** JT has quit IRC | 12:28 | |
*** f10w has quit IRC | 12:28 | |
*** JT has joined #zope | 12:28 | |
*** f10w has joined #zope | 12:28 | |
*** rmatte has quit IRC | 12:30 | |
*** rmatte has joined #zope | 12:30 | |
*** mcdonc has quit IRC | 12:56 | |
*** mcdonc has joined #zope | 12:56 | |
*** mcdonc has quit IRC | 13:21 | |
mgedmin | fredvd, AFAIU it's a kernel limitation | 13:27 |
mgedmin | all pipes are buffered | 13:27 |
mgedmin | if you want unbuffered logging, log to a file, or convince supervisor to use pseudottys | 13: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 |
fredvd | mgedmin: ok, thanks for the info! | 13:29 |
mgedmin | hm, this is a good argument against one of the factors of http://www.12factor.net/ | 13:29 |
mgedmin | maybe heroku does use ptys? | 13:29 |
fredvd | mgedmin: 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 |
mgedmin | yes | 13:30 |
*** fdrake has quit IRC | 13:30 | |
fredvd | if I look at #13 from supervisord: maybe Zope should flush stdout after every write, but that is probably a resource hog. | 13:30 |
fredvd | The 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 |
mgedmin | http://unix.stackexchange.com/questions/25372/turn-off-buffering-in-pipe | 13:31 |
mgedmin | flushing stdout is not sufficient -- the 4KB kernel pipe buffer is always there | 13:31 |
mgedmin | hm... maybe I'm wrong? | 13:32 |
fredvd | Only 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. :-0 | 13:32 |
mgedmin | python -c 'import time, sys; print "foo"; sys.stdout.flush(); time.sleep(1); print "bar"'|cat | 13:33 |
mgedmin | ok, experiment shows I'm Wrong Wrong Wrong | 13:33 |
mgedmin | if you flush, the data does not get stuck in the pipe buffer | 13:33 |
fredvd | Ok, so patching zope's usr1 handler to flush after dumping stack traces would suffice then. | 13:34 |
mgedmin | yep | 13:34 |
mgedmin | should | 13:34 |
*** tisto is now known as tisto|lunch | 13:34 | |
mgedmin | tell me how it goes please :) | 13:34 |
fredvd | I'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 |
mgedmin | apparently you can fix it without touching Zope code | 13:36 |
fredvd | by using the unbuffer? | 13:36 |
mgedmin | if you run it wrapped with expect_unbuffer | 13:36 |
mgedmin | yes | 13:36 |
fredvd | Yes, 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 |
fredvd | I only want stdout unbuffered, not anything else inside the process that uses buffers. | 13:37 |
mgedmin | expect_unbuffer only affects stdout (and stderr) | 13:38 |
mgedmin | at least, that's what I'd expect | 13:38 |
fredvd | Well that's something I can test. ;- | 13:41 |
fredvd | ;-) | 13:41 |
*** LeoRochael has joined #zope | 13:52 | |
*** evilbungle has quit IRC | 13:52 | |
*** J1m has joined #zope | 13:53 | |
*** evilbungle has joined #zope | 13:54 | |
*** evilbungle has quit IRC | 13:59 | |
*** evilbungle has joined #zope | 14:02 | |
*** evilbungle_ has joined #zope | 14:03 | |
*** evilbungle has quit IRC | 14:06 | |
*** evilbungle_ is now known as evilbungle | 14:06 | |
*** zagy has joined #zope | 14:11 | |
*** goschtl_ has joined #zope | 14:16 | |
*** goschtl has quit IRC | 14:18 | |
*** goschtl_ is now known as goschtl | 14:18 | |
*** miano has quit IRC | 14:21 | |
*** J1m has quit IRC | 14:31 | |
*** J1m has joined #zope | 14:32 | |
*** evilbungle has quit IRC | 14:34 | |
*** evilbungle has joined #zope | 14:34 | |
*** evilbungle has quit IRC | 14:34 | |
*** evilbungle has joined #zope | 14:36 | |
*** miano has joined #zope | 14:38 | |
*** J1m has quit IRC | 14:41 | |
*** mr_jolly has quit IRC | 14:49 | |
*** mr_jolly has joined #zope | 14:49 | |
*** mitchell`off is now known as mitchell` | 14:54 | |
*** mr_jolly has quit IRC | 15:02 | |
*** mr_jolly has joined #zope | 15:03 | |
*** benji has joined #zope | 15:10 | |
*** miano has quit IRC | 15:21 | |
*** miano has joined #zope | 15:22 | |
*** roq_ has left #zope | 15:31 | |
*** River_Rat has joined #zope | 15:41 | |
*** RiverRat has quit IRC | 15:43 | |
*** fdrake has joined #zope | 15:44 | |
*** fredvd has quit IRC | 15:48 | |
*** J1m has joined #zope | 15:57 | |
*** River-Rat has joined #zope | 16:04 | |
*** River_Rat has quit IRC | 16:07 | |
*** supersheep_ has quit IRC | 16:17 | |
*** supersheep_ has joined #zope | 16:17 | |
*** sp0cksbeard has joined #zope | 16:18 | |
*** mr_jolly has quit IRC | 16:28 | |
*** fredvd has joined #zope | 16:35 | |
*** mr_jolly has joined #zope | 16:42 | |
*** menesis has joined #zope | 16:43 | |
*** tisto|lunch is now known as tisto | 16:52 | |
*** River_Rat has joined #zope | 16:59 | |
*** River-Rat has quit IRC | 17:01 | |
*** fredvd has quit IRC | 17:14 | |
*** tiwula has joined #zope | 17:16 | |
*** agroszer has quit IRC | 17:33 | |
*** mr_jolly has quit IRC | 17:38 | |
*** __mac__ has quit IRC | 17:48 | |
*** daMaestro has joined #zope | 17:58 | |
*** giacomos has quit IRC | 18:03 | |
*** maurits has quit IRC | 18:10 | |
*** MrTango has quit IRC | 18:15 | |
*** mr_jolly has joined #zope | 18:20 | |
*** avoinea has quit IRC | 18:23 | |
*** evilbungle has quit IRC | 18:32 | |
*** fredvd has joined #zope | 18:36 | |
*** supton has joined #zope | 18:38 | |
*** zagy has quit IRC | 18:42 | |
*** kosh has joined #zope | 18:43 | |
*** goschtl has quit IRC | 18:45 | |
kosh | hail freaks! | 18:46 |
*** mr_jolly has quit IRC | 19:32 | |
*** Pumukel has joined #zope | 19:39 | |
*** River-Rat has joined #zope | 19:48 | |
*** eperez has quit IRC | 19:51 | |
*** River_Rat has quit IRC | 19:51 | |
*** tisto has quit IRC | 20:01 | |
*** supton has quit IRC | 20:06 | |
*** agroszer has joined #zope | 20:06 | |
*** zagy has joined #zope | 20:14 | |
*** menesis has quit IRC | 20:35 | |
*** mitchell` is now known as mitchell`off | 20:38 | |
*** Spanktar has joined #zope | 21:17 | |
*** agroszer has quit IRC | 21:18 | |
*** mcdonc has joined #zope | 21:18 | |
*** les_sylvains has joined #zope | 21:25 | |
*** fredvd has quit IRC | 21:28 | |
*** zagy has quit IRC | 21:51 | |
betabug | sm: hey there! | 21:57 |
betabug | sm: sorry for the delay, I'm running for a deadline here a bit, will send that email in a few days | 21:57 |
*** thetet has joined #zope | 22:00 | |
*** RichyB has quit IRC | 22:02 | |
sm | hey betabug, no problem | 22:06 |
sm | busy here too | 22:06 |
*** m8 has joined #zope | 23:14 | |
*** m8 has quit IRC | 23:25 | |
*** m8 has joined #zope | 23:26 | |
*** zagy has joined #zope | 23:29 | |
*** roq_ has joined #zope | 23:32 | |
*** m8 has quit IRC | 23:32 | |
*** m8 has joined #zope | 23:33 | |
*** zagy has quit IRC | 23:34 | |
*** LeoRochael has quit IRC | 23:38 | |
*** motto has joined #zope | 23:38 | |
*** les_sylvains has quit IRC | 23:38 | |
*** m8 has quit IRC | 23:39 | |
*** roq_ has left #zope | 23:44 | |
*** motto has quit IRC | 23:44 | |
*** m8 has joined #zope | 23:53 | |
*** motto has joined #zope | 23:57 | |
*** m8 has quit IRC | 23:57 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!