Improve logging
This commit is contained in:
parent
b0d2c99246
commit
bda5a5764a
@ -48,6 +48,8 @@ func unpackTar(archive, destination string) (err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func bootstrapHandler() (err error) {
|
func bootstrapHandler() (err error) {
|
||||||
|
log.Println("Download images...")
|
||||||
|
|
||||||
usr, err := user.Current()
|
usr, err := user.Current()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
@ -72,5 +74,10 @@ func bootstrapHandler() (err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
err = unpackTar(imagesArchive, imagesPath)
|
err = unpackTar(imagesArchive, imagesPath)
|
||||||
|
if err != nil {
|
||||||
|
log.Println("Unpack images error:", err)
|
||||||
|
}
|
||||||
|
|
||||||
|
log.Println("Success!")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user