avoid spamming slack
This commit is contained in:
parent
cfa33d59bb
commit
0abfa3fa98
1 changed files with 1 additions and 1 deletions
|
@ -316,7 +316,7 @@ func (s SyncManager) checkUsedSpace() error {
|
||||||
if usedPctile >= 0.90 && !s.SkipSpaceCheck {
|
if usedPctile >= 0.90 && !s.SkipSpaceCheck {
|
||||||
return errors.Err(fmt.Sprintf("more than 90%% of the space has been used. use --skip-space-check to ignore. Used: %.1f%%", usedPctile*100))
|
return errors.Err(fmt.Sprintf("more than 90%% of the space has been used. use --skip-space-check to ignore. Used: %.1f%%", usedPctile*100))
|
||||||
}
|
}
|
||||||
SendInfoToSlack("disk usage: %.1f%%", usedPctile*100)
|
log.Infof("disk usage: %.1f%%", usedPctile*100)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue