Small update for dev env

This commit is contained in:
Arnaud Delcasse 2023-03-10 13:28:56 +01:00
parent 312200e210
commit ab7de31a10
1 changed files with 4 additions and 0 deletions

View File

@ -17,6 +17,7 @@ func main() {
var (
service_name = cfg.GetString("name")
grpc_enable = cfg.GetBool("services.grpc.enable")
dev_env = cfg.GetBool("dev_env")
)
storage, err := storage.NewStorage(cfg)
@ -27,6 +28,9 @@ func main() {
handler := handlers.NewHandler(cfg, storage)
fmt.Println("Running", service_name, ":")
if dev_env {
fmt.Printf("\033]0;%s\007", service_name)
}
failed := make(chan error)