-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adopt v2.0 APIs #286
Adopt v2.0 APIs #286
Conversation
@dennwc I'm trying this locally and ran into a few SIP related errors. Could you take a look on this branch?
|
@davidzhao You probably need to rebase. There's no list/delete for SIP Participant in the latest CLI. |
that worked, thanks! |
go.mod
Outdated
@@ -23,6 +23,8 @@ require ( | |||
gopkg.in/yaml.v3 v3.0.1 | |||
) | |||
|
|||
replace github.com/livekit/server-sdk-go => ../server-sdk-go |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't forget to remove it!
logConfig.Level = "debug" | ||
} | ||
logger.InitFromConfig(logConfig, "livekit-cli") | ||
lksdk.SetLogger(logger.GetLogger()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe switch to v2 is a good moment to use slog
? It seems like uber-go/zap#1333 is not there yet, but other options like https://github.com/samber/slog-zap already exist.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can wait till things stabilizes a bit before updating to it
WIP