Advertisement
Guest User

Untitled

a guest
May 6th, 2017
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 2.98 KB | None | 0 0
  1. [Sat May  6 14:22:45 2017] [debug] **************************************************
  2. [Sat May  6 14:22:45 2017] [debug] GET "/servers"
  3. [Sat May  6 14:22:46 2017] [debug] Routing to a callback
  4. [Sat May  6 14:22:46 2017] [debug] Routing to controller "App::Controller::Server" and action "list"
  5. [Sat May  6 14:22:46 2017] [debug] Rendering cached template "server/list.html.ep"
  6. [Sat May  6 14:22:49 2017] [debug] Rendering cached template "layouts/v1.html.ep"
  7. [Sat May  6 14:22:50 2017] [debug] 200 OK (4.743003s, 0.211/s)
  8. [Sat May  6 14:23:07 2017] [debug] **************************************************
  9. [Sat May  6 14:23:07 2017] [debug] GET "/servers"
  10. [Sat May  6 14:23:08 2017] [debug] Routing to a callback
  11. [Sat May  6 14:23:08 2017] [debug] Routing to controller "App::Controller::Server" and action "list"
  12. [Sat May  6 14:23:08 2017] [debug] Rendering cached template "server/list.html.ep"
  13. [Sat May  6 14:23:12 2017] [debug] Rendering cached template "layouts/v1.html.ep"
  14. [Sat May  6 14:23:12 2017] [debug] 200 OK (4.546729s, 0.220/s)
  15.  
  16. APPLICATION STARTED
  17.  
  18. [Sat May  6 14:31:53 2017] [debug] **************************************************
  19. [Sat May  6 14:31:53 2017] [debug] GET "/servers"
  20. [Sat May  6 14:31:56 2017] [debug] Routing to a callback
  21. [Sat May  6 14:31:56 2017] [debug] Routing to controller "App::Controller::Server" and action "list"
  22. [Sat May  6 14:31:57 2017] [debug] Rendering template "server/list.html.ep"
  23. [Sat May  6 14:32:01 2017] [debug] Rendering template "layouts/v1.html.ep"
  24. [Sat May  6 14:32:01 2017] [debug] 200 OK (7.436036s, 0.134/s)
  25. [Sat May  6 14:32:01 2017] [debug] **************************************************
  26. [Sat May  6 14:32:02 2017] [error] Can't call method "name" on an undefined value at /home/kes/work/projects/safevpn/repo2/lib/Mojolicious/Plugin/Wizard.pm line 74.
  27.  
  28. [Sat May  6 14:32:02 2017] [debug] Rendering template "exception.development.html.ep"
  29. [Sat May  6 14:32:02 2017] [debug] Rendering template "mojo/menubar.html.ep"
  30. [Sat May  6 14:32:03 2017] [debug] Rendering cached template "layouts/v1.html.ep"
  31. [Sat May  6 14:32:05 2017] [debug] **************************************************
  32. [Sat May  6 14:32:05 2017] [debug] GET "/servers"
  33. [Sat May  6 14:32:06 2017] [debug] Routing to a callback
  34. [Sat May  6 14:32:06 2017] [debug] Routing to controller "App::Controller::Server" and action "list"
  35. [Sat May  6 14:32:06 2017] [debug] Rendering cached template "server/list.html.ep"
  36. [Sat May  6 14:32:09 2017] [debug] Rendering cached template "layouts/v1.html.ep"
  37. [Sat May  6 14:32:10 2017] [debug] 200 OK (4.867291s, 0.205/s)
  38.  
  39.  
  40.  
  41.  
  42. sub setup {
  43.  
  44.    ...
  45.    $app->hook( after_build_tx => sub{ $_[1]->log->debug( '*'x50 ) }) ;
  46.  
  47. }
  48.  
  49.  
  50. ..............
  51. package Mojolicious::Plugin::Wizard;
  52.  
  53. use Mojo::Base 'Mojolicious::Plugin';
  54.  
  55.  
  56.  
  57. sub register {
  58.     my( $plugin, $app, $conf ) =  @_;
  59.  
  60.     $app->hook( after_dispatch =>  \&wizard_state );
  61. }
  62.  
  63.  
  64.  
  65. sub wizard_state {
  66.     my( $c ) =  @_;
  67.  
  68.        $c->match->endpoint->name;  # <<<< line 74;
  69. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement