Skip to content

Commit

Permalink
optimize: log
Browse files Browse the repository at this point in the history
Signed-off-by: 孙林耀 <[email protected]>
  • Loading branch information
MicroOps-cn committed Feb 8, 2024
1 parent 2a1c450 commit 4e31122
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/idas/cmd/idas.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ func Run(ctx context.Context, logger kitlog.Logger, stopCh *signals.Handler) (er
level.Error(logger).Log("err", err, "msg", "Failed to get swagger UI directory status, so disable that.")
} else if stat.IsDir() {
httpServer.Handle(swaggerPath, http.StripPrefix(swaggerPath, http.FileServer(http.Dir(swaggerFilePath))))
level.Info(logger).Log("msg", fmt.Sprintf("enable Swagger UI on `%s`", swaggerPath))
level.Info(logger).Log("msg", fmt.Sprintf("enable Swagger UI on `%s` => %s", swaggerPath, swaggerFilePath))
} else {
level.Error(logger).Log("msg", " swagger UI local path is not directory, so disable that.")
}
Expand Down

0 comments on commit 4e31122

Please sign in to comment.