feat: add suppressEnabledInfo option to suppress type checker info message#46
feat: add suppressEnabledInfo option to suppress type checker info message#46zalishchuk wants to merge 1 commit intorstackjs:mainfrom
Conversation
chenjiahan
left a comment
There was a problem hiding this comment.
Could you provide some context for this new option? If the log is annoying, we should consider updating the message or removing it by default.
|
@chenjiahan I've added a custom plugin to I thought it would be helpful to allow the user the option to mute this message |
|
Thanks for the explanation. I'd prefer not to add an option just to control one log line since it is not a general design. You could instead use |
|
Thanks for the tip, it worked. For anyone facing the same issue in the future when trying to suppress the Type Checker info, here is the solution: const originalLoggerInfo = logger.info;
const TYPE_CHECKER_MESSAGE = 'Type checker is enabled. It may take some time.';
logger.override({
info: (message, ...args) => {
if (String(message).includes(TYPE_CHECKER_MESSAGE)) return;
return originalLoggerInfo(message, ...args);
},
}); |

No description provided.