The web in a box - a next generation web framework for the Perl programming language

IRC log for #mojo, 2017-09-09

| Channels | #mojo index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:20 [vlad] joined #mojo
01:19 disputin joined #mojo
01:47 tchaves joined #mojo
01:54 ilbot2 joined #mojo
01:54 Topic for #mojo is now 🍩 nom nom | http://mojolicious.org | http://irclog.mojolicious.org | http://code-of-conduct.mojolicious.org
02:16 noganex joined #mojo
03:07 zivester joined #mojo
03:50 kaare_ joined #mojo
04:04 dboehmer_ joined #mojo
04:06 bianca joined #mojo
04:28 brunoramos joined #mojo
05:13 bianca joined #mojo
05:17 karjala_ joined #mojo
06:25 bianca joined #mojo
06:48 kaare_ joined #mojo
07:31 dod joined #mojo
07:55 Vandal joined #mojo
07:58 bianca joined #mojo
08:08 petru joined #mojo
08:26 AndrewIsh joined #mojo
08:26 n16gel joined #mojo
09:43 stryx` joined #mojo
10:50 Ptolemarch joined #mojo
11:08 sh14 joined #mojo
11:10 bianca joined #mojo
11:37 petru joined #mojo
11:45 kes joined #mojo
11:47 bianca joined #mojo
11:47 n16gel joined #mojo
12:23 rshadow joined #mojo
12:30 kaare_ joined #mojo
12:35 bianca joined #mojo
12:37 dod joined #mojo
12:52 bianca joined #mojo
13:16 AndrewIsh joined #mojo
13:56 mgrimes joined #mojo
14:01 ChmEarl joined #mojo
14:25 Alex342 joined #mojo
14:34 karjala_ joined #mojo
15:06 DerAlex joined #mojo
15:12 bianca joined #mojo
15:43 Alex342 left #mojo
15:59 kaare_ joined #mojo
16:04 kaare_ joined #mojo
16:04 jabberwok joined #mojo
16:25 bianca joined #mojo
16:43 bianca joined #mojo
16:53 Alex342 joined #mojo
16:54 Alex342 I want to do do smth like this $self->session->clear('parameter'). It doesnt work
17:00 margeas joined #mojo
17:06 dod joined #mojo
17:11 kubrat joined #mojo
17:49 petru joined #mojo
17:53 zach joined #mojo
17:54 zach What is the best way to have a mojo app writing logs to syslog?
17:57 zach my presumption is that you'd just use https://perldoc.perl.org/Sys/Syslog.html
18:01 preaction we use, in various places, Log::Any and Log::Dispatch to get messages to syslog
18:02 bianca joined #mojo
18:17 kaare_ joined #mojo
18:21 sri just let systemd write the logs to syslog
18:34 sh14|2 joined #mojo
18:39 sh14 joined #mojo
18:45 sh14|2 joined #mojo
19:01 karjala_ joined #mojo
19:42 trone joined #mojo
19:55 petru has anyone encountered this behaviour, after I do a form.submit() with invalid data, I render a template with an error and return from the controller. However the template is rendered twice: https://perlbot.pl/p/45eoq5
19:59 bianca joined #mojo
20:41 preaction petru: where's the code that does this?
20:52 bianca joined #mojo
20:56 petru preaction: code that submits the form: https://perlbot.pl/p/ggqqik render function: https://perlbot.pl/p/7crz9n controller function: https://perlbot.pl/p/mgn587
20:59 preaction you're not calling render_bad_request, you're calling render_empty_object. also, that's not the complete controller method. also, are you sure you're reaching line 11? you might want to add some logging perhaps?
21:02 petru render_empty_object calls render_bad_request
21:05 petru line 11 is reached
21:06 petru https://perlbot.pl/p/7396rh this is the whole function
21:06 preaction if you want me to be able to debug the code, i need to see all the code, preferably in a test case that i can run locally
21:07 preaction that, or the way you're going to debug this is to reduce it to a reproduction case. also pay attention to when the renders are happening (adding extra logging lines will help)
21:10 petru I'll try to find it on my own first. What logging lines would you add?
21:12 preaction lines that show where the thread of execution goes
21:13 preaction your log shows that your request is routed to two controller methods, how?
21:17 preaction is that an under, or a redirect?
21:18 petru It's an under
21:21 petru found out, in get_question_info there was already an render
21:21 petru sorry for asking without debuggind propperly
21:42 bianca joined #mojo
22:24 petru where can I find a hypnotoad tutorial? I'm not able to start it. I get a unicorn raptor image saying we're sorry, something went very wrong
22:27 Alex342 left #mojo

| Channels | #mojo index | Today | | Search | Google Search | Plain-Text | summary