Changed console logging

This commit is contained in:
2017-04-11 17:42:56 +02:00
parent 9f21c033b8
commit 6e6ba12805
9 changed files with 6 additions and 17 deletions
+4 -1
View File
@@ -3,6 +3,10 @@ var connection = require('../db');
const express = require('express');
const router = express.Router();
router.all('*', function(req, res){
console.log(req.path);
req.next();
});
var parseTelegram = function(data, callback){
@@ -102,7 +106,6 @@ var parseTelegram = function(data, callback){
router.post('/telegram', function(req, res){
console.log("Telegram received");
connection.query(
'INSERT INTO telegram (time, data) VALUES (NOW(), ?)', [req.body.datagram],