Invalid config check

This commit is contained in:
世界
2022-07-03 01:57:04 +08:00
parent 6eae8e361f
commit 30444057bd
16 changed files with 276 additions and 162 deletions

View File

@@ -10,6 +10,14 @@ func NewNopLogger() Logger {
return (*nopLogger)(nil)
}
func (l *nopLogger) Start() error {
return nil
}
func (l *nopLogger) Close() error {
return nil
}
func (l *nopLogger) Trace(args ...interface{}) {
}
@@ -44,7 +52,3 @@ func (l *nopLogger) WithContext(ctx context.Context) Logger {
func (l *nopLogger) WithPrefix(prefix string) Logger {
return l
}
func (l *nopLogger) Close() error {
return nil
}