fix: manually initialize systemd logger to fix build error

Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
This commit is contained in:
Chaos Rogers 2025-07-21 20:33:14 +01:00
parent 9f39fb3739
commit 838082e95a

View file

@ -105,7 +105,9 @@ async fn main() {
println!("🚀 Starting TimeTurner daemon...");
#[cfg(target_os = "linux")]
{
systemd_journal_logger::init().unwrap();
// Manually initialize the logger as a workaround for build issues.
let logger = systemd_journal_logger::JournalLog::new().unwrap();
log::set_boxed_logger(Box::new(logger)).unwrap();
log::set_max_level(log::LevelFilter::Info);
log::info!("TimeTurner daemon started. API server is running.");
}