Skip to content

Commit

Permalink
fix: update Logs field type. (#662)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
mo3et committed Aug 15, 2024
1 parent e0622ec commit 875b11b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/third/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions open_im_sdk/third.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit 875b11b

Please sign in to comment.