Skip to content

Commit

Permalink
fix: log code behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
tokebe committed Nov 9, 2023
1 parent 4341ee1 commit 4e5491b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/log_entry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,18 @@ export enum SentryLogSeverity {

export class LogEntry {
level: string;
message: string;
code: string;
data: LogData;
code: string | null;
message: string | null;
data: LogData | null;
constructor(
level = "DEBUG",
code: string | null = null,
code: string | number | null = null,
message: string = null,
data: LogData = null,
) {
this.level = level;
this.message = message;
this.code = code;
this.code = code === null ? null : String(code);
this.data = data;
}

Expand Down

0 comments on commit 4e5491b

Please sign in to comment.