Skip to content

Commit

Permalink
fix: fixed a bug about throwable serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
osher-sade committed Feb 18, 2019
1 parent ea8ffe6 commit 4c3b5d6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/polaris-logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,11 @@ export class PolarisLogger {
...polarisLogProperties,
...PolarisLogger.getAppPropertiesToAssign(this.applicationLogProperties),
customProperties: undefined,
throwable: serializeError(polarisLogProperties && polarisLogProperties.throwable),
throwable:
polarisLogProperties &&
polarisLogProperties.throwable &&
serializeError(polarisLogProperties.throwable),
};

return cleanDeep(propertiesWithCustom);
}
}

0 comments on commit 4c3b5d6

Please sign in to comment.