What happened?
Serenity projects emit way too many log lines since #864, and can lead a bot to crash (not 100% confirmed).
The excessive logs are due to functions annotated with #[instrument] (spans) are set to INFO by default.
I think we can compromise by having the minimum level increased in the Shuttle log consumer for spans,
but it would be awesome if this was separately configurable with #842 (set separate span and event levels, per crate)
Version
v0.17.0
Which operating system(s) are you seeing the problem on?
Linux, In deployment
Which CPU architectures are you seeing the problem on?
x86_64, In deployment
Relevant log output
2023-05-31T02:03:10.586481275Z INFO {shard="Shard { shard_info: ShardInfo { id: 0, total: 1 }, .. }"} serenity::gateway::bridge::shard_runner: [span] recv
2023-05-31T02:03:10.586582375Z INFO serenity::gateway::shard: [span] do_heartbeat
2023-05-31T02:03:10.586616675Z INFO {shard="Shard { shard_info: ShardInfo { id: 0, total: 1 }, .. }"} serenity::gateway::bridge::shard_runner: [span] recv_event
Duplicate declaration
What happened?
Serenity projects emit way too many log lines since #864, and can lead a bot to crash (not 100% confirmed).
The excessive logs are due to functions annotated with
#[instrument](spans) are set to INFO by default.I think we can compromise by having the minimum level increased in the Shuttle log consumer for spans,
but it would be awesome if this was separately configurable with #842 (set separate span and event levels, per crate)
Version
v0.17.0
Which operating system(s) are you seeing the problem on?
Linux, In deployment
Which CPU architectures are you seeing the problem on?
x86_64, In deployment
Relevant log output
2023-05-31T02:03:10.586481275Z INFO {shard="Shard { shard_info: ShardInfo { id: 0, total: 1 }, .. }"} serenity::gateway::bridge::shard_runner: [span] recv 2023-05-31T02:03:10.586582375Z INFO serenity::gateway::shard: [span] do_heartbeat 2023-05-31T02:03:10.586616675Z INFO {shard="Shard { shard_info: ShardInfo { id: 0, total: 1 }, .. }"} serenity::gateway::bridge::shard_runner: [span] recv_eventDuplicate declaration