Skip to content

Commit

Permalink
fix(core): improved error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
sleidig committed Feb 14, 2024
1 parent e6b4096 commit 3809a7f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,12 @@ export class DynamicComponentDirective implements OnChanges {
this.appDynamicComponent.component,
)();
} catch (e) {
this.logger.error(
`Failed to load dynamic component:\n${JSON.stringify(
this.logger.error({
message: `Failed to load dynamic component:\n${JSON.stringify(
this.appDynamicComponent,
)}`,
);
error: e,
});
// abort if component failed to load
return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/core/support/support/support.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export class SupportComponent implements OnInit {
user: { name: this.sessionInfo.name },
level: "debug",
extra: {
currentUser: this.currentUser.getId(),
currentUser: this.currentUser?.getId(),
currentSyncState: this.currentSyncState,
lastSync: this.lastSync,
lastRemoteLogin: this.lastRemoteLogin,
Expand Down

0 comments on commit 3809a7f

Please sign in to comment.