Skip to content

Commit

Permalink
fix: update interface func. (#661)
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.
  • Loading branch information
mo3et committed Aug 15, 2024
1 parent 4b70c00 commit e0622ec
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ require (
github.com/openimsdk/protocol v0.0.69
github.com/openimsdk/tools v0.0.50-alpha.2
github.com/patrickmn/go-cache v2.1.0+incompatible
go.uber.org/zap v1.24.0
golang.org/x/image v0.15.0
golang.org/x/sync v0.6.0
gorm.io/gorm v1.25.10
Expand All @@ -31,7 +32,6 @@ require (
github.com/mattn/go-sqlite3 v1.14.22 // indirect
go.uber.org/atomic v1.7.0 // indirect
go.uber.org/multierr v1.6.0 // indirect
go.uber.org/zap v1.24.0 // indirect
golang.org/x/sys v0.18.0 // indirect
golang.org/x/text v0.14.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240318140521-94a12d6c2237 // indirect
Expand Down
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, path string, line string, err, msg string, keysAndValues []any) {
func (c *Third) Log(ctx context.Context, logLevel int, relativePath string, line string, 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, err string, msgs string, keyAndValue string) {
call(callback, operationID, UserForSDK.Third().Log, logLevel, err, msgs, keyAndValue)
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)
}

0 comments on commit e0622ec

Please sign in to comment.