@@ -46,15 +46,15 @@ async fn main() -> Result<(), Error> {
4646 let line = line. to_string ( ) . clone ( ) ;
4747 let cred: Vec < & str > = line. splitn ( 2 , '=' ) . collect ( ) ;
4848
49- debug ! ( username = cred[ 0 ] , "Added user. " ) ;
49+ debug ! ( username = cred[ 0 ] , "added user" ) ;
5050 authentificator. add_user (
5151 cred[ 0 ] . to_owned ( ) ,
5252 cred[ 1 ] . to_owned ( ) ,
5353 & realm,
5454 ) ;
5555 }
5656 } ,
57- Err ( _) => error ! ( path = path, "Cannot find file. " ) ,
57+ Err ( _) => error ! ( path = path, "cannot find path " ) ,
5858 }
5959 }
6060
@@ -66,19 +66,19 @@ async fn main() -> Result<(), Error> {
6666 . is_err ( )
6767 {
6868 error ! (
69- "JWT key is not valid; make sure you used the public key. "
69+ "jwt key is not valid; make sure you used the public key"
7070 )
7171 }
7272 } else {
7373 // However, it MUST be a path.
7474 if authentificator. public_key ( Key :: Path ( key) ) . is_err ( ) {
75- error ! ( "JWT key is not valid: is the path valid? is it the public key? " )
75+ error ! ( "jwt key is not valid, double check `JWT_PUBLIC_KEY` environment variable " )
7676 }
7777 }
7878 }
7979
8080 let conn = Arc :: new ( UdpSocket :: bind ( format ! ( "0.0.0.0:{port}" ) ) . await ?) ;
81- info ! ( "Listening to UDP on {}" , conn. local_addr( ) ?) ;
81+ info ! ( "listening to UDP on {}" , conn. local_addr( ) ?) ;
8282
8383 let server = Server :: new ( ServerConfig {
8484 conn_configs : vec ! [ ConnConfig {
@@ -97,7 +97,7 @@ async fn main() -> Result<(), Error> {
9797 . await ?;
9898
9999 signal:: ctrl_c ( ) . await . expect ( "failed to listen for event" ) ;
100- info ! ( "\n Closing TURN server" ) ;
100+ info ! ( "closing TURN server" ) ;
101101 server. close ( ) . await ?;
102102
103103 Ok ( ( ) )
0 commit comments