feat: add META_SERVICE log prefix to all debug and warn messages
This commit is contained in:
committed by
Andrew Phillips (aider)
parent
4497d9d095
commit
56f3c924b3
@@ -29,7 +29,7 @@ impl MetaService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
debug!("MetaService: Meta plugin types: {:?}", meta_plugin_types);
|
debug!("META_SERVICE: Meta plugin types: {:?}", meta_plugin_types);
|
||||||
|
|
||||||
let mut meta_plugins: Vec<Box<dyn MetaPlugin>> = meta_plugin_types
|
let mut meta_plugins: Vec<Box<dyn MetaPlugin>> = meta_plugin_types
|
||||||
.iter()
|
.iter()
|
||||||
@@ -51,12 +51,12 @@ impl MetaService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if let Err(e) = meta_plugin.configure_outputs(&configured_outputs) {
|
if let Err(e) = meta_plugin.configure_outputs(&configured_outputs) {
|
||||||
log::warn!("Warning: Failed to configure outputs for meta plugin '{}': {}", plugin_name, e);
|
log::warn!("META_SERVICE: Failed to configure outputs for meta plugin '{}': {}", plugin_name, e);
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Err(e) = meta_plugin.configure_options(&configured_options) {
|
if let Err(e) = meta_plugin.configure_options(&configured_options) {
|
||||||
log::warn!(
|
log::warn!(
|
||||||
"Warning: Failed to configure options for meta plugin '{}': {}",
|
"META_SERVICE: Failed to configure options for meta plugin '{}': {}",
|
||||||
plugin_name, e
|
plugin_name, e
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -67,7 +67,7 @@ impl MetaService {
|
|||||||
let original_len = meta_plugins.len();
|
let original_len = meta_plugins.len();
|
||||||
meta_plugins.retain(|meta_plugin| meta_plugin.is_supported());
|
meta_plugins.retain(|meta_plugin| meta_plugin.is_supported());
|
||||||
if meta_plugins.len() < original_len {
|
if meta_plugins.len() < original_len {
|
||||||
log::warn!("Warning: Some meta plugins are enabled but not supported on this system");
|
log::warn!("META_SERVICE: Some meta plugins are enabled but not supported on this system");
|
||||||
}
|
}
|
||||||
|
|
||||||
meta_plugins
|
meta_plugins
|
||||||
@@ -132,7 +132,7 @@ impl MetaService {
|
|||||||
pub fn finalize_plugins(&self, plugins: &mut [Box<dyn MetaPlugin>], conn: &Connection) {
|
pub fn finalize_plugins(&self, plugins: &mut [Box<dyn MetaPlugin>], conn: &Connection) {
|
||||||
for meta_plugin in plugins.iter_mut() {
|
for meta_plugin in plugins.iter_mut() {
|
||||||
if let Err(e) = meta_plugin.finalize(conn) {
|
if let Err(e) = meta_plugin.finalize(conn) {
|
||||||
log::warn!("Warning: Failed to finalize meta plugin: {}", e);
|
log::warn!("META_SERVICE: Failed to finalize meta plugin: {}", e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user