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
+1 -1
View File
File diff suppressed because one or more lines are too long
-5
View File
@@ -234,7 +234,6 @@ var DashboardComponent = (function () {
};
DashboardComponent.prototype.refreshData = function () {
var _this = this;
console.log("Refreshing data");
this.label = ({ data: ["Huidig opgenomen", "Huidig terug"] });
this.dataService
.usage("4530303035303031353538313833363134")
@@ -258,7 +257,6 @@ var DashboardComponent = (function () {
.get("4530303035303031353538313833363134")
.subscribe(function (res) {
_this.data4 = res.HOV;
console.log(_this.data4);
_this.dbloaded = true;
});
};
@@ -323,7 +321,6 @@ var DetailComponent = (function () {
};
DetailComponent.prototype.refreshData = function (id) {
var _this = this;
console.log("Refreshing data for ", this.id);
this.labelpie1 = ({ data: ["Huidig opgenomen", "Huidig terug"] });
this.labelpie2 = ({ data: ["Totaal opgenomen 2", "Totaal terug 2"] });
this.labelpie3 = ({ data: ["Totaal opgenomen 1", "Totaal terug 1"] });
@@ -456,7 +453,6 @@ var PickerComponent = (function () {
};
PickerComponent.prototype.onSubmit = function (form) {
this.loaded = false;
console.log(form);
this.refreshData(form.meter, form.group, form.date1, form.date2, form.datatype);
};
PickerComponent = __decorate([
@@ -825,7 +821,6 @@ var DoubleLineChartComponent = (function () {
newDataSet.push(newLine);
newDataSet.push(newLine2);
this.doublelineChartData = newDataSet;
console.log(this.doublelineChartData);
};
DoubleLineChartComponent.prototype.ngOnChanges = function () {
if (this.chart.chart != undefined) {
+1 -1
View File
File diff suppressed because one or more lines are too long
+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],
-1
View File
@@ -9,7 +9,6 @@ router.all('*', function(req, res){
req.next();
});
router.get('/device', function(req, res){
connection.query(
-4
View File
@@ -45,7 +45,6 @@ export class DashboardComponent implements OnInit, OnDestroy {
refreshData()
{
console.log("Refreshing data");
this.label = <LabelData> ({data: ["Huidig opgenomen", "Huidig terug"]});
this.dataService
@@ -80,9 +79,6 @@ export class DashboardComponent implements OnInit, OnDestroy {
.subscribe(res => {
this.data4 = res.HOV;
console.log(this.data4);
this.dbloaded = true;
});
-1
View File
@@ -65,7 +65,6 @@ export class DetailComponent implements OnInit, OnDestroy {
refreshData(id:string)
{
console.log("Refreshing data for ", this.id);
this.labelpie1 = <LabelData> ({data: ["Huidig opgenomen", "Huidig terug"]});
this.labelpie2 = <LabelData> ({data: ["Totaal opgenomen 2", "Totaal terug 2"]});
this.labelpie3 = <LabelData> ({data: ["Totaal opgenomen 1", "Totaal terug 1"]});
@@ -63,8 +63,6 @@ export class DoubleLineChartComponent implements OnInit, OnChanges {
newDataSet.push(newLine);
newDataSet.push(newLine2);
this.doublelineChartData = newDataSet;
console.log(this.doublelineChartData);
}
ngOnChanges(): void {
-1
View File
@@ -37,7 +37,6 @@ export class PickerComponent {
onSubmit(form:any)
{
this.loaded = false;
console.log(form);
this.refreshData(form.meter, form.group, form.date1, form.date2, form.datatype);
}
}