Skip to content

Commit

Permalink
reset trace
Browse files Browse the repository at this point in the history
  • Loading branch information
retorquere committed Jul 20, 2024
1 parent ce0ddec commit e65410c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion content/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ class Logger {
this.print(this.format({ ascii: false }, msg))
}

public trace(msg: string) {
public trace(msg: string, reset=false) {
if (reset) this.timestamp = 0
this.print(this.format({ trace: true, ascii: false }, msg))
}

Expand Down

0 comments on commit e65410c

Please sign in to comment.