Skip to content

Commit 60a377a

Browse files
committed
Fixed debug call
Signed-off-by: Vishal Rana <[email protected]>
1 parent ac4d019 commit 60a377a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/middleware/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ func main() {
1717
e := echo.New()
1818

1919
// Debug mode
20-
e.Debug(true)
20+
e.SetDebug(true)
2121

2222
//------------
2323
// Middleware

middleware/recover_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010

1111
func TestRecover(t *testing.T) {
1212
e := echo.New()
13-
e.Debug(true)
13+
e.SetDebug(true)
1414
req, _ := http.NewRequest(echo.GET, "/", nil)
1515
w := httptest.NewRecorder()
1616
res := &echo.Response{Writer: w}

0 commit comments

Comments
 (0)