remove logging
This commit is contained in:
parent
1e7663f44a
commit
d4d1f3b223
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user