mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-03 06:40:25 +08:00
优化KV相关日志
This commit is contained in:
@@ -2,6 +2,11 @@
|
||||
|
||||
package kvstore
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/TeaOSLab/EdgeNode/internal/remotelogs"
|
||||
)
|
||||
|
||||
type Logger struct {
|
||||
}
|
||||
|
||||
@@ -10,8 +15,13 @@ func NewLogger() *Logger {
|
||||
}
|
||||
|
||||
func (this *Logger) Infof(format string, args ...any) {
|
||||
|
||||
// stub
|
||||
}
|
||||
|
||||
func (this *Logger) Errorf(format string, args ...any) {
|
||||
remotelogs.Error("KV", fmt.Sprintf(format, args...))
|
||||
}
|
||||
|
||||
func (this *Logger) Fatalf(format string, args ...any) {
|
||||
|
||||
remotelogs.Error("KV", fmt.Sprintf(format, args...))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user