Skip to content
Snippets Groups Projects
Commit efa607dd authored by Kamil Trzcinski's avatar Kamil Trzcinski
Browse files

Add nice info message when nothing to do

parent ffa4af4f
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -431,10 +431,12 @@ func doCycle(client DockerClient, lowFreeSpace, freeSpace uint64) error {
return err
}
if diskSpace >= lowFreeSpace {
logrus.Infoln("Nothing to free. Current disk space", humanize.Bytes(diskSpace),
"is above the lower bound", humanize.Bytes(lowFreeSpace))
return nil
}
 
logrus.Infoln("Freeing disk space. The disk space is below:", humanize.Bytes(diskSpace),
logrus.Warningln("Freeing disk space. The disk space is below:", humanize.Bytes(diskSpace),
"trying to free to:", humanize.Bytes(freeSpace))
 
freeSpaceErr := doFreeSpace(client, freeSpace)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment