Skip to content

Commit

Permalink
remove all leftovers after removing 'warnings' config settings
Browse files Browse the repository at this point in the history
which was happened in GH PerlDancer#802 (0bc2da1)
  • Loading branch information
bor committed Aug 7, 2020
1 parent 8f6935c commit 1d0def6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
9 changes: 3 additions & 6 deletions lib/Dancer2/Tutorial.pod
Expand Up @@ -438,13 +438,12 @@ more options than just the session engine we want to set.
set 'log' => 'debug';
set 'show_errors' => 1;
set 'startup_info' => 1;
set 'warnings' => 1;

Hopefully these are fairly self-explanatory. We want the Simple session
engine, the Template Toolkit template engine, logging enabled (at the
'debug' level with output to the console instead of a file), we want to show
errors to the web browser, log access attempts and log Dancer2 warnings
(instead of silently ignoring them).
errors to the web browser and prints a banner at the server start with
information such as versions and the environment.

Dancer2 doesn't impose any limits on what parameters you can set using the
C<set> syntax. For this application we're going to embed our single username
Expand Down Expand Up @@ -688,7 +687,6 @@ Here's the complete 'dancr.pl' script from start to finish.
set 'log' => 'debug';
set 'show_errors' => 1;
set 'startup_info' => 1;
set 'warnings' => 1;
set 'username' => 'admin';
set 'password' => 'password';
set 'layout' => 'main';
Expand Down Expand Up @@ -1066,7 +1064,6 @@ the following five settings sprinkled throughout:

logger: "console"
log: "core"
warnings: 1
show_errors: 1
startup_info: 1

Expand All @@ -1077,7 +1074,7 @@ the four lines that correspond to these four settings.
Then, in the configuration file, be sure to change the value for the C<log>
setting from "core" to "debug" so it matches the value we had in our module.

We will leave it up to you what you want to do with the fifth setting,
We will leave it up to you what you want to do with the fourth setting,
C<startup_info>. You can read about that setting, along with all the other
settings, in the L<configuration manual|Dancer2::Config/"startup info (boolean)">.

Expand Down
3 changes: 0 additions & 3 deletions share/skel/environments/development.yml
Expand Up @@ -11,9 +11,6 @@ logger: "console"
# (debug, info, warning and error)
log: "core"

# should Dancer2 consider warnings as critical errors?
warnings: 1

# should Dancer2 show a stacktrace when an 5xx error is caught?
# if set to yes, public/500.html will be ignored and either
# views/500.tt, 'error_template' template, or a default error template will be used.
Expand Down
3 changes: 0 additions & 3 deletions share/skel/environments/production.yml
Expand Up @@ -6,9 +6,6 @@ log: "warning"
# log message to a file in logs/
logger: "file"

# don't consider warnings critical
warnings: 0

# hide errors
show_errors: 0

Expand Down

0 comments on commit 1d0def6

Please sign in to comment.