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:
parent
9541046a29
commit
02a66c7bd7
@ -1408,6 +1408,7 @@ func checkAndLoadPackage(imports []*ast.ImportSpec, realType, curPkgName string)
|
||||
pkg, err := build.Default.Import(pkgPath, ".", build.FindOnly)
|
||||
if err != nil {
|
||||
beeLogger.Log.Warnf("Package %s cannot be imported, err:%v", pkgPath, err)
|
||||
return
|
||||
}
|
||||
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")
|
||||
}, parser.ParseComments)
|
||||
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user