Skip to content

Commit

Permalink
Init logger
Browse files Browse the repository at this point in the history
  • Loading branch information
grellyd committed Dec 10, 2023
1 parent 2c899ba commit a4b7751
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion grellyddotcom.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ const (
)

func main() {
globallogger.NewGlobalLogger("grellyddotcom", state.DEBUGGING)

info, ok := debug.ReadBuildInfo()
if !ok {
globallogger.Fatal("failed to ReadBuildInfo")
Expand Down Expand Up @@ -70,7 +72,7 @@ func run() error {
server.Addr = AddrHTTPS

go func() {
globallogger.Info("Serving Challenges")
globallogger.Info(fmt.Sprintf("Serving Challenges on %s", AddrHTTP))
err = http.ListenAndServe(AddrHTTP, certManager.HTTPHandler(nil))
if err != nil {
globallogger.Error(fmt.Errorf("failed to listen and serve %s: %w", AddrHTTP, err).Error())
Expand Down

0 comments on commit a4b7751

Please sign in to comment.