Skip to content

Commit

Permalink
chore: update server boot log
Browse files Browse the repository at this point in the history
  • Loading branch information
kelein committed Jan 3, 2024
1 parent 527e52a commit be4ae08
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ app-linux:

build: app

run:
@go run cmd/sketch/sketch.go

image:
@make app-linux
@docker build . -t ${TAG}
Expand Down
3 changes: 3 additions & 0 deletions cmd/sketch/sketch.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"flag"
"fmt"
"log"
"log/slog"
"os"
"os/signal"
"syscall"
Expand Down Expand Up @@ -41,6 +42,8 @@ func main() {
showVersion()

go router.Start()
slog.Info("server start listen on", "addr", ":9000")

signal.Notify(term, os.Interrupt, syscall.SIGTERM)
select {
case <-term:
Expand Down

0 comments on commit be4ae08

Please sign in to comment.