fix: lp: gin debug, print gpu count

This commit is contained in:
Andrew Jackson (Ajax) 2023-11-09 20:40:40 -06:00
parent 23ba7faa84
commit 6c68ba1315
2 changed files with 2 additions and 0 deletions

View File

@ -257,6 +257,7 @@ var runCmd = &cli.Command{
return err
}
gin.SetMode(gin.ReleaseMode)
handler := gin.New()
defer taskEngine.GracefullyTerminate(time.Hour)

View File

@ -805,6 +805,7 @@ func (l *LocalWorker) Info(context.Context) (storiface.WorkerInfo, error) {
if err != nil {
log.Errorf("getting gpu devices failed: %+v", err)
}
log.Infow("Detected GPU devices.", "count", len(gpus))
memPhysical, memUsed, memSwap, memSwapUsed, err := l.memInfo()
if err != nil {