1
0
Fork 0

Improve logging

timestamps
dump_stack() 2018-12-02 03:13:18 +00:00
parent b0d2c99246
commit bda5a5764a
1 changed files with 7 additions and 0 deletions

View File

@ -48,6 +48,8 @@ func unpackTar(archive, destination string) (err error) {
}
func bootstrapHandler() (err error) {
log.Println("Download images...")
usr, err := user.Current()
if err != nil {
return
@ -72,5 +74,10 @@ func bootstrapHandler() (err error) {
}
err = unpackTar(imagesArchive, imagesPath)
if err != nil {
log.Println("Unpack images error:", err)
}
log.Println("Success!")
return
}