Did something change about what gets logged on bot initialization?

I'm using SapphireClient's built-in logger with @sapphire/plugin-logger. I used to get logs like the ones in the first image, but now I'm getting only 2 lines logged, as shown in the second. I should also mention that the logs from the first image are from a sharded application, while the second are not. Would that be the reason?
No description
No description
Solution:
I've managed to solve the problem, for anyone else running into the same thing: I've noticed that pieces weren't getting loaded either and found out that it's not finding my "base user directory" because the "main" property in my package.json points to dist/sharding_manager/index.js but my piece directories are under dist/shard. You can use the baseUserDirectory option when instantiating the SapphireClient to point to the correct directory. In my case it was set to dist/shard....
Jump to solution
2 Replies
Teixeira
TeixeiraOP2w ago
I have also double checked that the log level of both is set to LogLevel.Debug
Solution
Teixeira
Teixeira2w ago
I've managed to solve the problem, for anyone else running into the same thing: I've noticed that pieces weren't getting loaded either and found out that it's not finding my "base user directory" because the "main" property in my package.json points to dist/sharding_manager/index.js but my piece directories are under dist/shard. You can use the baseUserDirectory option when instantiating the SapphireClient to point to the correct directory. In my case it was set to dist/shard.

Did you find this page helpful?