print errno if daemonize failed

This commit is contained in:
zonyitoo
2021-10-08 00:03:24 +08:00
parent edfea66783
commit 76dfdbaaf6

View File

@@ -14,6 +14,6 @@ pub fn daemonize<F: AsRef<Path>>(pid_path: Option<F>) {
}
if let Err(err) = d.start() {
error!("failed to daemonize, {}", err);
error!("failed to daemonize, {:?} ({})", err, err);
}
}