diff options
Diffstat (limited to 'packages/taler-util/src/logging.ts')
-rw-r--r-- | packages/taler-util/src/logging.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/taler-util/src/logging.ts b/packages/taler-util/src/logging.ts index ca7210eaa..840402d6f 100644 --- a/packages/taler-util/src/logging.ts +++ b/packages/taler-util/src/logging.ts @@ -205,4 +205,12 @@ export class Logger { ); } } + + reportBreak(): void { + if (!this.shouldLogError()) { + return; + } + const location = new Error("programming error"); + this.error(`assertion failed: ${location.stack}`); + } } |