Skip to content

Commit

Permalink
fix: undefined IP in staging
Browse files Browse the repository at this point in the history
  • Loading branch information
conradbekondo committed Jan 14, 2025
1 parent f7f9ee9 commit e536867
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion logging/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ class LogTailTransport extends Transport {
[k]: v
}), {} as Record<string, unknown>);

this.logTail.log(message, level, rest).then(() => next()).catch(this.log(info, next));
this.logTail.log(message, level, rest).then(() => next()).catch(err => {
console.error(err);
this.log(info, next);
});
}
}

Expand Down

0 comments on commit e536867

Please sign in to comment.