Skip to content

Commit

Permalink
added comment to mode example
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Sep 4, 2013
1 parent 3805b04 commit 2c3438e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Mojolicious/Lite.pm
Expand Up @@ -934,11 +934,12 @@ L<Mojolicious::Guides::Cookbook/"REAL-TIME WEB">.
You can use the L<Mojo::Log> object from L<Mojo/"log"> to portably collect
debug messages and automatically disable them later in a production setup by
changing the Mojolicious operating mode, which can be retrieved from the
changing the Mojolicious operating mode, which can also be retrieved from the
attribute L<Mojolicious/"mode">.
use Mojolicious::Lite;
# Prepare mode specific message during startup
my $msg = app->mode eq 'development' ? 'Development!' : 'Something else!';
get '/' => sub {
Expand Down

0 comments on commit 2c3438e

Please sign in to comment.