[mb-commits] branch, vagrant, updated. Only load debug modules in debug mode

MusicBrainz Git Server <[email protected]>
Newsgroups gmane.comp.audio.musicbrainz.cvs
Message-ID <E1TTvfC-0003W8-RZ@wiley>
The branch, vagrant has been updated
       via  http://git.musicbrainz.org/gitweb/?p=musicbrainz-server/core.git;a=commit;h=06d93d859b6a855c2726c0185f4bab92905c10b0 (commit)
      from  http://git.musicbrainz.org/gitweb/?p=musicbrainz-server/core.git;a=commit;h=9f6f18fbd9a8310555f356a2affacda73dc6597b (commit)

Summary of changes:
 app.psgi |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 06d93d859b6a855c2726c0185f4bab92905c10b0
Author: Oliver Charles <[email protected]>
Date:   Thu Nov 1 14:22:21 2012 +0000

    Only load debug modules in debug mode

diff --git a/app.psgi b/app.psgi
index c98bd3c..7430613 100644
--- a/app.psgi
+++ b/app.psgi
@@ -6,8 +6,13 @@ use DBDefs;
 use Moose::Util qw( ensure_all_roles );
 use Plack::Builder;
 use Plack::Middleware::Debug::DAOLogger;
-use Plack::Middleware::Debug::ExclusiveTime;
-use Plack::Middleware::Debug::TemplateToolkit;
+
+BEGIN {
+    if (DBDefs::CATALYST_DEBUG) {
+        require Plack::Middleware::Debug::ExclusiveTime;
+        require Plack::Middleware::Debug::TemplateToolkit;
+    }
+}
 
 # Has to come before requiring MusicBrainz::Server
 BEGIN {

-----------------------------------------------------------------------


hooks/post-receive
-- 
mb_server
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.