From 4d314636883b16cdfd01ec4561ecf3c7172a3374 Mon Sep 17 00:00:00 2001 From: = Date: Mon, 28 Sep 2020 09:16:06 +0200 Subject: [PATCH] tempo trascorso + production hub --- .../src/app_modules_thermo/dashboard/dashboard.vue | 2 +- Thermo.Active/wwwroot/src/services/hub.ts | 13 +++++++++---- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/dashboard/dashboard.vue b/Thermo.Active/wwwroot/src/app_modules_thermo/dashboard/dashboard.vue index 61b12591..47e9e4e3 100644 --- a/Thermo.Active/wwwroot/src/app_modules_thermo/dashboard/dashboard.vue +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/dashboard/dashboard.vue @@ -95,7 +95,7 @@
{{'dashboard-timing-elapsed' | localize('tempo trascorso')}} - +
{{'dashboard-timing-end' | localize('fine')}} diff --git a/Thermo.Active/wwwroot/src/services/hub.ts b/Thermo.Active/wwwroot/src/services/hub.ts index 2e7535f9..e7ec2536 100644 --- a/Thermo.Active/wwwroot/src/services/hub.ts +++ b/Thermo.Active/wwwroot/src/services/hub.ts @@ -76,10 +76,15 @@ export class Hub { console.log('SignalrAdapter: ' + error, exc); }; - if (!PRODUCTION) { - try { $.connection.hub.logging = true; } catch { } - try { $.connection.ncHub.logging = true; } catch { } - } + try { $.connection.hub.logging = true; } catch { } + try { $.connection.ncHub.logging = true; } catch { } + + try { + if (PRODUCTION) { + try { $.connection.hub.logging = false; } catch { } + try { $.connection.ncHub.logging = false; } catch { } + } + } catch { } // Registro le callback; this._hub.client.alarms = this.manageAlarmsCallbacks;