[Catalyst] auto method never triggered

Julien Sobrier julien at sobrier.net
Sat Oct 31 17:00:57 GMT 2009


After adding an action, and return 1; in each auto and begin, it looks
better:

[info] *** Request 2 (0.000/s) [9579] [Sat Oct 31 09:58:48 2009] ***
[debug] "GET" request for "/" from "192.168.1.100"
[debug] Path is "/"
[debug] Found sessionid "e1262ec64fecc849f31af4e61fbb38cb66a414e9" in cookie
[debug] Restored session "e1262ec64fecc849f31af4e61fbb38cb66a414e9"
[debug] root begin: http://test.bargain-notify.me/
[debug] root auto: http://test.bargain-notify.me/
[debug] Rendering template "index.tt"
[info] Request took 0.077143s (12.963/s)
.------------------------------------------------------------+-----------.
| Action                                                     | Time      |
+------------------------------------------------------------+-----------+
| /begin                                                     | 0.000410s |
| /auto                                                      | 0.000197s |
| /index                                                     | 0.008401s |
|  -> /process_index                                         | 0.001785s |
| /end                                                       | 0.048556s |
|  -> Bargain::View::TT->process                             | 0.047238s |
'------------------------------------------------------------+-----------'


[info] *** Request 12 (0.000/s) [9579] [Sat Oct 31 09:59:51 2009] ***
[debug] "GET" request for "admin" from "192.168.1.100"
[debug] Path is "admin"
[debug] Found sessionid "e1262ec64fecc849f31af4e61fbb38cb66a414e9" in cookie
[debug] Restored session "e1262ec64fecc849f31af4e61fbb38cb66a414e9"
[debug] root begin: http://test.bargain-notify.me/admin
[debug] root auto: http://test.bargain-notify.me/admin
[debug] Role granted: Administrator
[debug] Rendering template "admin.tt"
[info] Request took 0.230871s (4.331/s)
.------------------------------------------------------------+-----------.
| Action                                                     | Time      |
+------------------------------------------------------------+-----------+
| /begin                                                     | 0.000415s |
| /auto                                                      | 0.000198s |
| /admin                                                     | 0.032198s |
| /end                                                       | 0.179180s |
|  -> Bargain::View::TT->process                             | 0.178188s |
'------------------------------------------------------------+-----------'


As you ca see, auto in Admin.pm does not fire.

Thank you for the help.

Julien


On Sat, Oct 31, 2009 at 7:42 AM, Tomas Doran <bobtfish at bobtfish.net> wrote:

>
> On 31 Oct 2009, at 05:10, Julien Sobrier wrote:
>
>>
>>
>> Whether I access / or /admin, I don't see any log from any of the auto
>> functions, but I do see it from the begin fuctions. I am wondering what =
I am
>> missing.
>>
>
> Unsure.
>
> Can you attach the debug log of your application startup and the debug log
> generated when you hit /admin ?
>
> Cheers
> t0m
>
>
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20091031/bc257=
695/attachment.htm


More information about the Catalyst mailing list