From 875b11b294e4850ddbd57dc0d277dadfc6202efc Mon Sep 17 00:00:00 2001 From: Monet Lee Date: Thu, 15 Aug 2024 10:41:55 +0800 Subject: [PATCH] fix: update Logs field type. (#662) * Refactor: reconstruct issue and label in GitHub. * update feature-request label. * update * fix: update to correct workflow. * fix: remove env. * fix: remove unused release files. * refactor: update workflows and remove unnecessary contents. * Fix: remove uncorrect comment. * remove labels. * update yml * update * feat: implement log interface. * update * update * update. * fix: update interface func. * fix: update Logs field type. * update log fields. --- internal/third/log.go | 2 +- open_im_sdk/third.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/third/log.go b/internal/third/log.go index 81d1a6f1e..25436b0e7 100644 --- a/internal/third/log.go +++ b/internal/third/log.go @@ -189,7 +189,7 @@ func readLastNLines(filename string, n int) ([]string, error) { return result, nil } -func (c *Third) Log(ctx context.Context, logLevel int, relativePath string, line string, msg, err string, keysAndValues []any) { +func (c *Third) Log(ctx context.Context, logLevel int, file string, line int, msg, err string, keysAndValues []any) { switch logLevel { case 6: // sdklog.SDKDebug(ctx, path, line, msg, keysAndValues) diff --git a/open_im_sdk/third.go b/open_im_sdk/third.go index c5784494e..d480332b7 100644 --- a/open_im_sdk/third.go +++ b/open_im_sdk/third.go @@ -30,6 +30,6 @@ func UploadLogs(callback open_im_sdk_callback.Base, operationID string, line int call(callback, operationID, UserForSDK.Third().UploadLogs, line, ex, progress) } -func Logs(callback open_im_sdk_callback.Base, operationID string, logLevel int, relativePath string, line string, msgs string, err string, keyAndValue string) { - call(callback, operationID, UserForSDK.Third().Log, logLevel, relativePath, line, msgs, err, keyAndValue) +func Logs(callback open_im_sdk_callback.Base, operationID string, logLevel int, file string, line int, msgs string, err string, keyAndValue string) { + call(callback, operationID, UserForSDK.Third().Log, logLevel, file, line, msgs, err, keyAndValue) }