[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 <E1TTvjT-0003ZN-Jb@wiley>
The branch, vagrant has been updated
  discards  http://git.musicbrainz.org/gitweb/?p=musicbrainz-server/core.git;a=commit;h=06d93d859b6a855c2726c0185f4bab92905c10b0 (commit)
       via  http://git.musicbrainz.org/gitweb/?p=musicbrainz-server/core.git;a=commit;h=2c1613b99eac6f382ff2bf20a1575ee5ce7d2d90 (commit)

This update added new revisions after undoing existing revisions.  That is
to say, the old revision is not a strict subset of the new revision.  This
situation occurs when you --force push a change and generate a repository
containing something like this:

 * -- * -- B -- O -- O -- O (06d93d859b6a855c2726c0185f4bab92905c10b0)
            \
             N -- N -- N (2c1613b99eac6f382ff2bf20a1575ee5ce7d2d90)

When this happens we assume that you've already had alert emails for all
of the O revisions, and so we here report only the revisions in the N
branch from the common base, B.

Summary of changes:
 app.psgi |    2 +-
 1 files changed, 1 insertions(+), 1 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 2c1613b99eac6f382ff2bf20a1575ee5ce7d2d90
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..9d36beb 100644
--- a/app.psgi
+++ b/app.psgi
@@ -5,9 +5,14 @@ use warnings;
 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::DAOLogger;
+        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.