Use explicit log level in tracing instrument macro
Specify a log level in tracing instrument macro explicitly. Additionally reduce the used log level from a default info level to a debug level (all of those appear to be developer oriented logs, so there should be no need to include them in release builds).
This commit is contained in:
parent
2c7bc5e33c
commit
b6b19f3b6c
4 changed files with 15 additions and 15 deletions
|
@ -99,7 +99,7 @@ impl<K: DepKind> SerializedDepGraph<K> {
|
|||
impl<'a, K: DepKind + Decodable<opaque::Decoder<'a>>> Decodable<opaque::Decoder<'a>>
|
||||
for SerializedDepGraph<K>
|
||||
{
|
||||
#[instrument(skip(d))]
|
||||
#[instrument(level = "debug", skip(d))]
|
||||
fn decode(d: &mut opaque::Decoder<'a>) -> Result<SerializedDepGraph<K>, String> {
|
||||
let start_position = d.position();
|
||||
|
||||
|
@ -187,7 +187,7 @@ impl<K: DepKind> EncoderState<K> {
|
|||
}
|
||||
}
|
||||
|
||||
#[instrument(skip(self, record_graph))]
|
||||
#[instrument(level = "debug", skip(self, record_graph))]
|
||||
fn encode_node(
|
||||
&mut self,
|
||||
node: &NodeInfo<K>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue