Add a debug option to the camera config

This commit is contained in:
QuantumEntangledAndy committed 2023-08-10 15:17:12 +07:00
1 parent eefe3dfa71
commit e093151db6
9 files changed
+74 -23

No files matched your search

+7
View File
@@ -126,6 +126,9 @@ pub(crate) struct CameraConfig {
#[serde(default = "default_true", alias = "enable")]
pub(crate) enabled: bool,
#[serde(default = "default_false", alias = "verbose")]
pub(crate) debug: bool,
}
#[derive(Debug, Deserialize, Validate, Clone)]
@@ -191,6 +194,10 @@ const fn default_true() -> bool {
true
}
const fn default_false() -> bool {
true
}
fn default_mqtt() -> Option<MqttConfig> {
None
}
+1
View File
@@ -97,6 +97,7 @@ impl AddressOrUid {
username: camera_config.username.clone(),
password: camera_config.password.clone(),
},
debug: camera_config.debug,
};
trace!("Camera Info: {:?}", options);