File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ use goauth::auth::JwtClaims;
55use goauth:: scopes:: Scope ;
66use hyper:: client:: HttpConnector ;
77use hyper_tls:: HttpsConnector ;
8- use log:: error;
98use smpl_jwt:: Jwt ;
109use std:: fs;
1110use std:: str:: FromStr ;
@@ -111,9 +110,9 @@ impl Client {
111110 loop {
112111 if c. is_running ( ) {
113112 int. tick ( ) . await ;
114- println ! ( "Renewing pubsub token" ) ;
113+ log :: debug !( "Renewing pubsub token" ) ;
115114 if let Err ( e) = client. refresh_token ( ) . await {
116- error ! ( "Failed to update token: {}" , e) ;
115+ log :: error!( "Failed to update token: {}" , e) ;
117116 }
118117 }
119118 }
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ use crate::message::{FromPubSubMessage, Message};
44use hyper:: body:: Buf ;
55use hyper:: { Method , StatusCode } ;
66use lazy_static:: lazy_static;
7- use log:: error;
87use serde_derive:: { Deserialize , Serialize } ;
98use std:: env;
109
@@ -54,7 +53,7 @@ impl Subscription {
5453 * req. uri_mut ( ) = uri. clone ( ) ;
5554
5655 if let Err ( e) = client. hyper_client ( ) . request ( req) . await {
57- error ! ( "Failed ACk : {}" , e) ;
56+ log :: error!( "Failed ACK : {}" , e) ;
5857 }
5958 }
6059
@@ -99,7 +98,7 @@ impl Subscription {
9998 . filter_map ( |packet| match T :: from ( packet. message ) {
10099 Ok ( o) => Some ( o) ,
101100 Err ( e) => {
102- error ! ( "Failed converting pubsub {}" , e, ) ;
101+ log :: error!( "Failed converting pubsub {}" , e) ;
103102 None
104103 }
105104 } )
You can’t perform that action at this time.
0 commit comments