From 10ef25245f09ab787fe1a05968a32fc31d641fea Mon Sep 17 00:00:00 2001 From: Chris ter Beke <1134120+ChrisTerBeke@users.noreply.github.com> Date: Tue, 11 Jun 2024 21:12:39 +0200 Subject: [PATCH] Add Sentry logging --- .eslintrc.json | 5 +++-- app.ts | 9 ++++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 7a0d26b..7d96356 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,3 +1,4 @@ { - "extends": "athom" -} \ No newline at end of file + "extends": "athom", + "strict": "off" +} diff --git a/app.ts b/app.ts index 962480b..0c2bed3 100644 --- a/app.ts +++ b/app.ts @@ -2,11 +2,14 @@ import sourceMapSupport from 'source-map-support' sourceMapSupport.install() import { App } from 'homey' +const { Log } = require('homey-log') class UponorApp extends App { - async onInit() { - this.log('UponorApp is running...') - } + async onInit() { + // @ts-ignore TS2339 + this.homeyLog = new Log({ homey: this.homey }) + this.log('UponorApp is running...') + } } module.exports = UponorApp