Skip to content

Commit 10ef252

Browse files
committed
Add Sentry logging
1 parent 0329e75 commit 10ef252

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.eslintrc.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"extends": "athom"
3-
}
2+
"extends": "athom",
3+
"strict": "off"
4+
}

app.ts

+6-3
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@ import sourceMapSupport from 'source-map-support'
22
sourceMapSupport.install()
33

44
import { App } from 'homey'
5+
const { Log } = require('homey-log')
56

67
class UponorApp extends App {
7-
async onInit() {
8-
this.log('UponorApp is running...')
9-
}
8+
async onInit() {
9+
// @ts-ignore TS2339
10+
this.homeyLog = new Log({ homey: this.homey })
11+
this.log('UponorApp is running...')
12+
}
1013
}
1114

1215
module.exports = UponorApp

0 commit comments

Comments
 (0)