mirror of
https://github.com/cjfranko/NTP-Timeturner.git
synced 2025-11-08 10:22:02 +00:00
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:
parent
9f39fb3739
commit
838082e95a
1 changed files with 3 additions and 1 deletions
|
|
@ -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.");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue