Fix log bug
This commit is contained in:
parent
67bd2daa02
commit
91e6db1bae
2 changed files with 3 additions and 2 deletions
|
@ -6,6 +6,7 @@ package routers
|
|||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"os"
|
||||
"strings"
|
||||
|
||||
|
@ -42,7 +43,7 @@ func GlobalInit() {
|
|||
|
||||
if base.InstallLock {
|
||||
if err := models.NewEngine(); err != nil {
|
||||
log.Error("%v", err)
|
||||
fmt.Println("%v", err)
|
||||
os.Exit(2)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue