Using log.Panic instead

This commit is contained in:
Manu Mtz-Almeida
2015-03-23 05:50:10 +01:00
parent 34b1d0262e
commit 3e3ced70d4
6 changed files with 15 additions and 12 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ func SetMode(value string) {
case TestMode:
gin_mode = testCode
default:
panic("gin mode unknown: " + value)
log.Panic("gin mode unknown: " + value)
}
mode_name = value
}