From eb91af753db3d2bc6b86eb3ed3f94fac76a67eb4 Mon Sep 17 00:00:00 2001 From: Manu Mtz-Almeida Date: Sun, 24 May 2015 01:21:23 +0200 Subject: [PATCH] Better debug warning message --- debug.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/debug.go b/debug.go index 7ac72d2..a0b99f4 100644 --- a/debug.go +++ b/debug.go @@ -28,7 +28,11 @@ func debugPrint(format string, values ...interface{}) { } func debugPrintWARNING() { - debugPrint("[WARNING] Running in DEBUG mode! Disable it before going production\n") + debugPrint(`[WARNING] Running in "debug" mode. Switch to "release" mode in production. + - using env: export GIN_MODE=release + - using code: gin.SetMode(gin.ReleaseMode) + +`) } func debugPrintError(err error) {