[dw-free] Enable warnings globally on dev servers
[commit: http://hg.dwscoalition.org/dw-free/rev/da088bf04ac0]
http://bugs.dwscoalition.org/show_bug.cgi?id=2925
Warnings always on for dev servers.
Patch by
kareila.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=2925
Warnings always on for dev servers.
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Files modified:
- cgi-bin/modperl_subs.pl
- doc/config-local.pl.txt
-------------------------------------------------------------------------------- diff -r c3f4335a9370 -r da088bf04ac0 cgi-bin/modperl_subs.pl --- a/cgi-bin/modperl_subs.pl Fri Oct 29 14:09:38 2010 +0800 +++ b/cgi-bin/modperl_subs.pl Fri Oct 29 14:20:00 2010 +0800 @@ -26,7 +26,7 @@ use LJ::Config; BEGIN { LJ::Config->load; - $^W = 1 if $LJ::IS_DEV_SERVER && $LJ::ENABLE_GLOBAL_WARNINGS; + $^W = 1 if $LJ::IS_DEV_SERVER; } use Apache::LiveJournal; diff -r c3f4335a9370 -r da088bf04ac0 doc/config-local.pl.txt --- a/doc/config-local.pl.txt Fri Oct 29 14:09:38 2010 +0800 +++ b/doc/config-local.pl.txt Fri Oct 29 14:20:00 2010 +0800 @@ -22,9 +22,6 @@ # keep this enabled only if this site is a development server $IS_DEV_SERVER = 1; - - # turn on warnings for all files. Will turn up a lot of stuff in the logs. - $ENABLE_GLOBAL_WARNINGS = 0; # home directory $HOME = $ENV{'LJHOME'}; --------------------------------------------------------------------------------