File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -224,13 +224,16 @@ impl PersistStats {
224
224
}
225
225
226
226
pub fn log ( & self ) {
227
- println ! (
228
- "downloads_counter shard={} counted_versions={} counted_downloads={} pending_downloads={}" ,
229
- self . shard. map( |s| s. to_string( ) ) . unwrap_or_else( || "all" . into( ) ) ,
230
- self . counted_versions,
231
- self . counted_downloads,
232
- self . pending_downloads,
233
- ) ;
227
+ if self . counted_downloads != 0 && self . counted_versions != 0 && self . pending_downloads != 0
228
+ {
229
+ println ! (
230
+ "downloads_counter shard={} counted_versions={} counted_downloads={} pending_downloads={}" ,
231
+ self . shard. map( |s| s. to_string( ) ) . unwrap_or_else( || "all" . into( ) ) ,
232
+ self . counted_versions,
233
+ self . counted_downloads,
234
+ self . pending_downloads,
235
+ ) ;
236
+ }
234
237
}
235
238
}
236
239
You can’t perform that action at this time.
0 commit comments