start up message

any way of removing these logs on start up: [INFO] ApplicationCommandRegistries: Initializing... [INFO] ApplicationCommandRegistries: Took 1ms to initialize.
6 Replies
Lioness100
Lioness100•14mo ago
In the client options, add { instance: new Logger(LogLevel.Warn) }. This will only show logs that are a higher level from "info" That is, anything from logger.trace(), logger.debug(), and logger.info() will not show up
-Carlos🎃
-Carlos🎃•14mo ago
by client options do you mean inside the const client = new SapphireClient({})
Lioness100
Lioness100•14mo ago
yes sorry, I wasn't specific. It's the logger field in the client options new SapphireClient({ logger: { instance: ... }, ... })
-Carlos🎃
-Carlos🎃•14mo ago
oh alright looks like it works ty
Favna
Favna•14mo ago
Actual solution is incorrect. I still think it's extremely silly to be anal about 2 log lines but you're not the first to ask so we added https://www.sapphirejs.dev/docs/Documentation/api-framework/interfaces/SapphireClientOptions#loadapplicationcommandregistriesstatuslisteners to client options that you can set to false. CC @lioness100
Lioness100
Lioness100•14mo ago
Oh whoops
Want results from more Discord servers?
Add your server