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

Make log messages nicer

parent 40f7f968
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -438,6 +438,9 @@ func doCycle(client DockerClient, lowFreeSpace, freeSpace uint64) error {
"trying to free to:", humanize.Bytes(freeSpace))
 
freeSpaceErr := doFreeSpace(client, freeSpace)
if freeSpaceErr != nil {
logrus.Warningln("Failed to free disk space:", freeSpaceErr)
}
 
currentDiskSpace, _, err := client.DiskSpace(opts.MonitorPath)
if err == nil {
Loading
Loading
@@ -473,10 +476,8 @@ func runCleanupTool(c *cli.Context) {
 
err = doCycle(&customClient, lowFreeSpace, expectedFreeSpace)
if err == nil {
logrus.Infoln("Checking disk space...")
time.Sleep(opts.CheckInterval)
} else {
logrus.Warningln("Failed to free disk space:", err)
time.Sleep(opts.RetryInterval)
}
}
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