Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMike Gerwitz <mike.gerwitz@ryansg.com>2019-12-09 14:50:22 -0500
committerAustin Schaffer <austin.schaffer@ryansg.com>2019-12-12 10:27:09 -0500
commit84c2601f1c8a0ac97ce6c35b05c913521ba47a89 (patch)
treedf6101973095fc5f6a6024c0cf8868852b8c446f /src
parente885026e0a1ecf1e21e821fb50fe5d1a46537664 (diff)
downloadliza-84c2601f1c8a0ac97ce6c35b05c913521ba47a89.tar.gz
liza-84c2601f1c8a0ac97ce6c35b05c913521ba47a89.tar.bz2
liza-84c2601f1c8a0ac97ce6c35b05c913521ba47a89.zip
EventMediator: Log error stack under context
Diffstat (limited to 'src')
-rw-r--r--src/system/EventMediator.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/system/EventMediator.ts b/src/system/EventMediator.ts
index 31b245e..cd5b703 100644
--- a/src/system/EventMediator.ts
+++ b/src/system/EventMediator.ts
@@ -70,8 +70,8 @@ export class EventMediator
private _handleError( e: any ): void
{
- let msg: string = '';
- let context = {};
+ let msg: string = '';
+ let context: Record<string, any> = {};
if ( e instanceof( Error ) )
{
@@ -81,6 +81,8 @@ export class EventMediator
{
context = e.context;
}
+
+ context.stack = e.stack;
}
this._log.error( msg, context );