1
0
mirror of https://github.com/beego/bee.git synced 2024-11-21 18:40:54 +00:00

change log level

This commit is contained in:
John 2021-02-06 19:44:32 +08:00
parent 9541046a29
commit 02a66c7bd7

View File

@ -1408,6 +1408,7 @@ func checkAndLoadPackage(imports []*ast.ImportSpec, realType, curPkgName string)
pkg, err := build.Default.Import(pkgPath, ".", build.FindOnly) pkg, err := build.Default.Import(pkgPath, ".", build.FindOnly)
if err != nil { if err != nil {
beeLogger.Log.Warnf("Package %s cannot be imported, err:%v", pkgPath, err) beeLogger.Log.Warnf("Package %s cannot be imported, err:%v", pkgPath, err)
return
} }
pkgRealpath := pkg.Dir pkgRealpath := pkg.Dir
@ -1417,7 +1418,7 @@ func checkAndLoadPackage(imports []*ast.ImportSpec, realType, curPkgName string)
return !info.IsDir() && !strings.HasPrefix(name, ".") && strings.HasSuffix(name, ".go") return !info.IsDir() && !strings.HasPrefix(name, ".") && strings.HasSuffix(name, ".go")
}, parser.ParseComments) }, parser.ParseComments)
if err != nil { if err != nil {
beeLogger.Log.Fatalf("Error while parsing dir at '%s': %s", pkgRealpath, err) beeLogger.Log.Warnf("Error while parsing dir at '%s': %s", pkgRealpath, err)
} }
for _, pkg := range pkgs { for _, pkg := range pkgs {