@@ -11,7 +11,7 @@ use primitives::sentry::{
11
11
use primitives:: validator:: MessageTypes ;
12
12
use primitives:: { Channel , Config , ValidatorDesc , ValidatorId } ;
13
13
use reqwest:: { Client , Response } ;
14
- use slog:: Logger ;
14
+ use slog:: { error , Logger } ;
15
15
use std:: collections:: HashMap ;
16
16
use std:: time:: Duration ;
17
17
@@ -53,7 +53,7 @@ impl<T: Adapter + 'static> SentryApi<T> {
53
53
. map ( |auth| ( validator. to_owned ( ) , auth) )
54
54
. map_err ( |e| {
55
55
ValidatorWorker :: Failed ( format ! (
56
- "propagate error: get auth failed {}" ,
56
+ "Propagation error: get auth failed {}" ,
57
57
e
58
58
) )
59
59
} )
@@ -71,7 +71,7 @@ impl<T: Adapter + 'static> SentryApi<T> {
71
71
} )
72
72
}
73
73
SpecValidator :: None => Err ( ValidatorWorker :: Failed (
74
- "we can not find validator entry for whoami" . to_string ( ) ,
74
+ "We can not find validator entry for whoami" . to_string ( ) ,
75
75
) ) ,
76
76
}
77
77
}
@@ -83,7 +83,7 @@ impl<T: Adapter + 'static> SentryApi<T> {
83
83
} ) )
84
84
. await
85
85
{
86
- println ! ( "Propagation error: {}" , e) ;
86
+ error ! ( & self . logger , "Propagation error: {}" , e; "module" => "sentry_interface" , "in" => "SentryApi" ) ;
87
87
}
88
88
}
89
89
0 commit comments