Skip to content

Commit 013f1e9

Browse files
committed
feat: add got response body when logpusher fail
1 parent bf34425 commit 013f1e9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/log_pusher/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ export class LogPusher {
3737
}
3838

3939
if (err instanceof RequestError) {
40-
console.error('Got error when trying to send log to Loki:', err.message)
40+
console.error(
41+
'Got error when trying to send log to Loki:',
42+
err.message + '\n' + err.response?.body,
43+
)
4144
return
4245
}
4346

0 commit comments

Comments
 (0)