fix caller ignore lxutils
This commit is contained in:
parent
ef7728d8c0
commit
d1f16742d4
@ -92,6 +92,7 @@ var (
|
|||||||
zapgormPackage = filepath.Join("moul.io", "zapgorm2")
|
zapgormPackage = filepath.Join("moul.io", "zapgorm2")
|
||||||
zapgormlxdb = filepath.Join("lxDb", "sql")
|
zapgormlxdb = filepath.Join("lxDb", "sql")
|
||||||
zapgormmodel = filepath.Join("model", "")
|
zapgormmodel = filepath.Join("model", "")
|
||||||
|
lxutilsPackage = filepath.Join("tool", "lxutils")
|
||||||
)
|
)
|
||||||
|
|
||||||
func (l Logger) logger() *zap.Logger {
|
func (l Logger) logger() *zap.Logger {
|
||||||
@ -102,6 +103,7 @@ func (l Logger) logger() *zap.Logger {
|
|||||||
case !ok:
|
case !ok:
|
||||||
case strings.HasSuffix(file, "_test.go"):
|
case strings.HasSuffix(file, "_test.go"):
|
||||||
case strings.Contains(file, gormPackage):
|
case strings.Contains(file, gormPackage):
|
||||||
|
case strings.Contains(file, lxutilsPackage):
|
||||||
case strings.Contains(file, zapgormPackage):
|
case strings.Contains(file, zapgormPackage):
|
||||||
case strings.Contains(file, zapgormlxdb):
|
case strings.Contains(file, zapgormlxdb):
|
||||||
case strings.Contains(file, zapgormmodel):
|
case strings.Contains(file, zapgormmodel):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user