File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -231,7 +231,7 @@ func (u *Upgrader) Version() semver.Version {
231231func (u * Upgrader ) nextUpdate () time.Duration {
232232 jitter := rand .Intn (checkJitter )
233233 next := checkForUpdateEvery + (time .Duration (jitter ) * time .Minute )
234- log .Info ().Str ("after" , next .String ()).Msg ("checking for update after " )
234+ log .Info ().Str ("after" , next .String ()).Msg ("checking for update" )
235235 return next
236236}
237237
@@ -295,7 +295,7 @@ func (u *Upgrader) update() error {
295295 }
296296 }
297297
298- log .Info ().Str ("version" , filepath .Base (remote .Target )).Msg ("updating system..." )
298+ log .Info ().Str ("running version" , u . Version (). String ()). Str ( "updating to version" , filepath .Base (remote .Target )).Msg ("updating system..." )
299299 if err := u .updateTo (remote , & current ); err != nil {
300300 return errors .Wrapf (err , "failed to update to new tag '%s'" , remote .Target )
301301 }
@@ -436,9 +436,11 @@ func newInMemoryCache() (*inMemoryCache, error) {
436436func (c * inMemoryCache ) flistCache () string {
437437 return c .flist
438438}
439+
439440func (c * inMemoryCache ) fileCache () string {
440441 return c .file
441442}
443+
442444func (c * inMemoryCache ) clean () {
443445 os .RemoveAll (c .root )
444446}
You can’t perform that action at this time.
0 commit comments