feat(livekit): add option for log level and log sampling

This commit is contained in:
Tobias Zenk 2024-09-06 14:20:17 +02:00
parent e246d3dfde
commit 52ac53620a
No known key found for this signature in database
GPG key ID: 953FFB020465E686
2 changed files with 13 additions and 0 deletions

View file

@ -98,6 +98,14 @@ livekit_redis_port: 6379
livekit_jwt_service_external_port: 8888
```
The defaults are also used set the log level and manage log sampling (these can
be overwritten using the group_vars or on a per-host basis):
```yaml
livekit_log_level: "info" # can be debug, info, warn or error
livekit_log_sample: true # 'true' avoids duplicate log entries and improves performance: https://github.com/uber-go/zap/blob/master/FAQ.md#why-sample-application-logs
```
## Dependencies
- famedly.base.redis

View file

@ -3,6 +3,8 @@ livekit_version: "v1.7"
livekit_jwt_service_version: "sha-4a29504"
livekit_domain: "{{ famedly_instance_domain }}"
livekit_turnserver_domain: ~
livekit_log_level: "info"
livekit_log_sample: true
livekit_redis_enabled: false
livekit_ws_port: 7880
livekit_rtc_port: 7881
@ -20,6 +22,9 @@ livekit_container_config: "/etc/livekit.yaml"
livekit_container_command: "--config {{ livekit_container_config }}"
livekit_config_basic:
port: "{{ livekit_ws_port }}"
logging:
level: "{{ livekit_log_level }}"
sample: "{{ livekit_log_sample }}"
bind_addresses:
- "127.0.0.1"
room: