ponymail-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject incubator-ponymail git commit: Enh: make debug info optional
Date Thu, 20 Apr 2017 11:20:30 GMT
Repository: incubator-ponymail
Updated Branches:
  refs/heads/master 4f593339a -> 3df79f64a


Enh: make debug info optional

Oops - missed one of the debug instances
Relates to #369

Project: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/commit/3df79f64
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/tree/3df79f64
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/diff/3df79f64

Branch: refs/heads/master
Commit: 3df79f64a6d9002f5bc61bc5866eed6a31424f93
Parents: 4f59333
Author: Sebb <sebb@apache.org>
Authored: Thu Apr 20 12:20:26 2017 +0100
Committer: Sebb <sebb@apache.org>
Committed: Thu Apr 20 12:20:26 2017 +0100

----------------------------------------------------------------------
 site/api/stats.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/3df79f64/site/api/stats.lua
----------------------------------------------------------------------
diff --git a/site/api/stats.lua b/site/api/stats.lua
index 45c693d..c2ddee3 100644
--- a/site/api/stats.lua
+++ b/site/api/stats.lua
@@ -313,7 +313,7 @@ function handle(r)
         if #doc.hits.hits == 0 then
             r:puts(JSON.encode{
                 changed = false,
-                took = r:clock() - START
+                  took = DEBUG and (r:clock() - START) or nil
             })
             return cross.OK
         end


Mime
View raw message