Skip to content

Commit

Permalink
feat: add more logger for get release (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
CorrectRoadH authored Nov 17, 2023
1 parent 5debc06 commit 8181d12
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion service/status_serivce.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"fmt"
"sync"

"github.com/IceWhaleTech/CasaOS-Common/utils/logger"
"github.com/IceWhaleTech/CasaOS-Installer/codegen"
"github.com/IceWhaleTech/CasaOS-Installer/types"
)
Expand Down Expand Up @@ -106,7 +107,9 @@ func (r *StatusService) GetRelease(ctx context.Context, tag string) (*codegen.Re

release, err = r.ImplementService.GetRelease(ctx, tag)
if err != nil {
fmt.Println(err)
logger.Error(fmt.Sprintf("Get Release Faile %s tag:%s", err.Error(), tag))
} else {
logger.Info(fmt.Sprintf("Get Release success! %s", release.Version))
}
return release, err
}
Expand Down

0 comments on commit 8181d12

Please sign in to comment.