fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2010-10-29 06:20 am

[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 [personal profile] kareila.

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'};
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org