quick fix

This commit is contained in:
2024-09-20 19:25:59 +02:00
parent ea7fc7713c
commit e20e487119

View File

@@ -226,7 +226,7 @@ fn get_settings() -> Settings {
#[cfg(target_os = "linux")] #[cfg(target_os = "linux")]
#[tokio::main] #[tokio::main]
async fn main() { async fn main() {
let current_directory = env::current_dir().expect("Could not get app directory."); let current_directory = env::current_dir().expect("Could not get app directory.").expect("Could not get app directory. (Required to run at all)");
let stdout = File::create("/var/vote/log/daemon.out").unwrap(); let stdout = File::create("/var/vote/log/daemon.out").unwrap();
let stderr = File::create("/var/vote/log/daemon.err").unwrap(); let stderr = File::create("/var/vote/log/daemon.err").unwrap();