mirror of
https://codeberg.org/VnPower/PixivFE
synced 2024-12-06 19:16:23 +01:00
truncate proxy check duration
This commit is contained in:
@@ -62,8 +62,11 @@ func main() {
|
||||
// Wait for the first proxy check to complete
|
||||
auditor.SugaredLogger.Info("Waiting for initial proxy check to complete...")
|
||||
wgFirstCheck.Wait()
|
||||
duration := time.Since(startTime) // Calculate the duration
|
||||
auditor.SugaredLogger.Infof("Initial proxy check completed in %v.", duration)
|
||||
|
||||
d := time.Since(startTime)
|
||||
truncated := d.Truncate(time.Millisecond)
|
||||
|
||||
auditor.SugaredLogger.Infof("Initial proxy check completed in %v.", truncated)
|
||||
}()
|
||||
} else {
|
||||
auditor.SugaredLogger.Infof("ProxyCheckEnabled set to %t, skipping proxy checker initialization.", config.GlobalConfig.ProxyCheckEnabled)
|
||||
|
||||
Reference in New Issue
Block a user