Use our logger instead of console 🤦

This commit is contained in:
Sergio Padrino 2022-02-02 12:31:22 +01:00
parent 5fa9c2bf19
commit 0062f3e63e
2 changed files with 3 additions and 3 deletions

View file

@ -46,7 +46,7 @@ function findToastActivatorClsidInShorcut(shortcutPath: string) {
return shortcutDetails.toastActivatorClsid
} catch (error) {
console.error(
log.error(
`Error looking for toast activator CLSID in shortcut ${shortcutPath}`,
error
)

View file

@ -15,7 +15,7 @@ function initializeWindowsNotifications() {
windowsToastActivatorClsid = findToastActivatorClsid()
if (windowsToastActivatorClsid === undefined) {
console.error(
log.error(
'Toast activator CLSID not found in any of the shortucts. Falling back to known CLSIDs.'
)
@ -24,7 +24,7 @@ function initializeWindowsNotifications() {
windowsToastActivatorClsid = '{27D44D0C-A542-5B90-BCDB-AC3126048BA2}'
}
console.log(`Using toast activator CLSID ${windowsToastActivatorClsid}`)
log.info(`Using toast activator CLSID ${windowsToastActivatorClsid}`)
initializeNotifications(windowsToastActivatorClsid)
}