Skip to content

Commit

Permalink
常にDEBUGな問題を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
SnO2WMaN committed Sep 24, 2023
1 parent 8d37029 commit c21ff04
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package main

import (
"context"
"os"

"github.com/labstack/echo/v4"
"github.com/labstack/echo/v4/middleware"
Expand All @@ -11,7 +12,9 @@ var ctx = context.Background()

func main() {
e := echo.New()
e.Debug = true

e.Debug = os.Getenv("DEBUG") == "true"

e.Use(middleware.Logger())

e.GET("/mads/:serial/primary", MADPrimaryThumbnail)
Expand Down

0 comments on commit c21ff04

Please sign in to comment.