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