Skip to content

Commit

Permalink
fix: raise an error even before setting the log level
Browse files Browse the repository at this point in the history
  • Loading branch information
antomor committed Sep 22, 2023
1 parent 101f2d3 commit 2372339
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/commands/Register.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@ executeRegister()
log.info('Registration is done!');
})
.catch((error) => {
log.info('Error registering relay server', error);
// we don't use the log library here because an error could be raised before setting the log level.
console.error('Error registering relay server', error);
});

export type { RegisterOptions, RegisterConfig };

0 comments on commit 2372339

Please sign in to comment.