优化KV相关日志

This commit is contained in:
GoEdgeLab
2024-04-24 09:03:15 +08:00
parent e18bd2a6e1
commit f80788ea54

View File

@@ -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...))
}