Adding better error logs for ntfy client
This commit is contained in:
parent
a85f743be4
commit
7fe76186c7
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ export class NtfyClient {
|
|||
throw new Error(`${response.status} - ${response.statusText}`)
|
||||
}
|
||||
} catch (error: unknown) {
|
||||
this.loggerService.error('ntfy client failed', { error })
|
||||
this.loggerService.error('ntfy client failed', { error: error instanceof Error ? error.message : JSON.stringify(error) })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue