From f0680fc05c09c7bd4ef0a75d1a0656efb6d9f88c Mon Sep 17 00:00:00 2001 From: Rene Saarsoo Date: Thu, 30 Aug 2012 13:04:16 +0300 Subject: [PATCH] Replace needless logging with useful logging. Turn off logging of what MySQL session store is doing. Instead enable logging of HTTP requests that our express server gets. --- comments/app.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/comments/app.js b/comments/app.js index 287f3c58..8603f915 100644 --- a/comments/app.js +++ b/comments/app.js @@ -37,7 +37,8 @@ app.configure(function() { store: new MySQLStore( config.mysql.database, config.mysql.user, - config.mysql.password + config.mysql.password, + {logging: false} ) })); @@ -53,6 +54,8 @@ app.configure(function() { app.use(express.methodOverride()); app.enable('jsonp callback'); + + app.use(express.logger('dev')); }); // Authentication is disabled for now. -- GitLab