This is an automated email from the ASF dual-hosted git repository.

bdelacretaz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-whiteboard.git


The following commit(s) were added to refs/heads/master by this push:
     new 700ce09  Remove extra log messages
700ce09 is described below

commit 700ce0937d0af2b0c82a1a389a6dd34da4ee4eee
Author: Bertrand Delacretaz <[email protected]>
AuthorDate: Fri Jul 26 17:09:23 2019 +0200

    Remove extra log messages
---
 serverless-microsling/microsling.js | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/serverless-microsling/microsling.js 
b/serverless-microsling/microsling.js
index 629cf38..1152303 100644
--- a/serverless-microsling/microsling.js
+++ b/serverless-microsling/microsling.js
@@ -29,15 +29,12 @@ function main (params) {
     debug: params.debug
   };
 
-  return new Promise(function (resolvePromise, reject) {
-    if(context.debug) console.log(`start: ${JSON.stringify(context, 2, 
null)}`);
+  return new Promise(function (resolvePromise) {
     resolveContent(context)
     .then(context => {
-      if(context.debug) console.log(`pre-render: ${JSON.stringify(context, 2, 
null)}`);
       return render(context);
     })
     .then(context => {
-      if(context.debug) console.log(`pre-resolve: ${JSON.stringify(context, 2, 
null)}`);
       return resolvePromise(context.response);
     })
     .catch(e => {

Reply via email to