@@ -50,12 +50,12 @@ impl System {
5050 }
5151
5252 pub fn rescan ( & mut self ) -> anyhow:: Result < ( ) > {
53- log:: debug !( "rescanning view of system hardware..." ) ;
53+ log:: info !( "rescanning view of system hardware..." ) ;
5454
5555 {
5656 let start = Instant :: now ( ) ;
5757 self . cpus = cpu:: Cpu :: all ( ) . context ( "failed to scan CPUs" ) ?;
58- log:: debug !(
58+ log:: info !(
5959 "rescanned all CPUs in {millis}ms" ,
6060 millis = start. elapsed( ) . as_millis( ) ,
6161 ) ;
@@ -65,7 +65,7 @@ impl System {
6565 let start = Instant :: now ( ) ;
6666 self . power_supplies = power_supply:: PowerSupply :: all ( )
6767 . context ( "failed to scan power supplies" ) ?;
68- log:: debug !(
68+ log:: info !(
6969 "rescanned all power supplies in {millis}ms" ,
7070 millis = start. elapsed( ) . as_millis( ) ,
7171 ) ;
@@ -103,7 +103,7 @@ impl System {
103103 {
104104 let start = Instant :: now ( ) ;
105105 self . rescan_load_average ( ) ?;
106- log:: debug !(
106+ log:: info !(
107107 "rescanned load average in {millis}ms" ,
108108 millis = start. elapsed( ) . as_millis( ) ,
109109 ) ;
@@ -112,7 +112,7 @@ impl System {
112112 {
113113 let start = Instant :: now ( ) ;
114114 self . rescan_temperatures ( ) ?;
115- log:: debug !(
115+ log:: info !(
116116 "rescanned temperatures in {millis}ms" ,
117117 millis = start. elapsed( ) . as_millis( ) ,
118118 ) ;
@@ -164,7 +164,7 @@ impl System {
164164 if temperatures. is_empty ( ) {
165165 const PATH : & str = "/sys/devices/virtual/thermal" ;
166166
167- log:: debug !(
167+ log:: warn !(
168168 "failed to get CPU temperature information by using hwmon, falling \
169169 back to '{PATH}'"
170170 ) ;
@@ -342,7 +342,7 @@ impl System {
342342 } ,
343343
344344 // Unknown, continue with other checks
345- _ => log:: debug!( "unknown chassis type" ) ,
345+ unknown => log:: debug!( "unknown chassis type: '{unknown}' " ) ,
346346 }
347347 }
348348
0 commit comments