use crate log and syslog

This commit is contained in:
Dietmar Maurer committed 2019-01-26 10:56:11 +01:00
1 parent e182ab4a4a
commit d96d82736d
3 files changed
+13 -3

No files matched your search

+8
View File
@@ -17,6 +17,14 @@ use hyper;
fn main() {
if let Err(err) = syslog::init(
syslog::Facility::LOG_DAEMON,
log::LevelFilter::Info,
Some("proxmox-backup-api")) {
eprintln!("unable to inititialize syslog: {}", err);
std::process::exit(-1);
}
let command : Arc<Schema> = StringSchema::new("Command.")
.format(Arc::new(ApiStringFormat::Enum(vec![
"start".into(),