remove logging

This commit is contained in:
Simon Tokumine 2011-08-17 21:26:15 +01:00
parent 1e7663f44a
commit d4d1f3b223

View File

@ -30,8 +30,6 @@ var express= require('express')
// NOTE: private queries can only be ran on databases the oAuth key gives access to.
app.get('/api/v1/', function(req, res){
console.log(req);
//sanitize input
var sql = req.query.sql;
var database = req.query.database;
@ -76,6 +74,8 @@ app.get('/api/v1/', function(req, res){
function handleException(err, res){
var msg = (global.settings.environment == 'development') ? {error:[err.message], stack: err.stack} : {error:[err.message]}
// Need to email this
console.log("EXCEPTION REPORT")
console.log(err.message);
console.log(err.stack);
res.send(msg, 400);