Skip to content

Commit 423c6cc

Browse files
committed
daily-python: update daily.pyi with log level methods
1 parent 0f3ae88 commit 423c6cc

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

daily.pyi

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,10 +246,12 @@ class CustomAudioTrack:
246246

247247
class Daily:
248248
@staticmethod
249-
def init(worker_threads: int = 2) -> None: ...
249+
def init(worker_threads: int = 2, log_level: LogLevel = LogLevel.Off) -> None: ...
250250
@staticmethod
251251
def deinit() -> None: ...
252252
@staticmethod
253+
def set_log_level(self, log_level: LogLevel) -> None: ...
254+
@staticmethod
253255
def create_camera_device(
254256
device_name: str, width: int, height: int, color_format: str = "RGBA"
255257
) -> VirtualCameraDevice: ...

src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,6 @@ impl PyDaily {
187187
/// :param log_level: Set application log level
188188
/// :type log_level: :ref:`LogLevel`
189189
#[staticmethod]
190-
#[pyo3(signature = (log_level = PyLogLevel::Off))]
191190
pub fn set_log_level(log_level: PyLogLevel) {
192191
tracing::info!("Setting log level to {log_level:?}");
193192
unsafe {

0 commit comments

Comments
 (0)