Better debug warning message

This commit is contained in:
Manu Mtz-Almeida 2015-05-24 01:21:23 +02:00
parent e2adae9003
commit eb91af753d

View File

@ -28,7 +28,11 @@ func debugPrint(format string, values ...interface{}) {
} }
func debugPrintWARNING() { 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) { func debugPrintError(err error) {