Commit 1d0b5aaf authored by Stan Hu's avatar Stan Hu

Log the URL of the cache file

While trying to debug issues with omnibus, I wondered where the "Downloading cache" and
"Uploading cache" were going. Add the URL into the log message to make this clear.
parent ece34f93
Pipeline #3898157 passed with stage
in 10 minutes and 40 seconds
......@@ -22,7 +22,7 @@ type CacheArchiverCommand struct {
}
func (c *CacheArchiverCommand) upload() (bool, error) {
logrus.Infoln("Uploading", filepath.Base(c.File))
logrus.Infoln("Uploading", filepath.Base(c.File), "to", c.URL)
file, err := os.Open(c.File)
if err != nil {
......
......@@ -54,7 +54,7 @@ func (c *CacheExtractorCommand) download() (bool, error) {
return false, nil
}
logrus.Infoln("Downloading", filepath.Base(c.File))
logrus.Infoln("Downloading", filepath.Base(c.File), "from", c.URL)
_, err = io.Copy(file, resp.Body)
if err != nil {
return true, err
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment