cargo fmt
This commit is contained in:
@ -231,21 +231,16 @@ pub fn set_panic_hook(program: &'static str) {
|
||||
// TODO: use ono.message() when it becomes stable
|
||||
ono.to_string(),
|
||||
),
|
||||
)
|
||||
.add_field(
|
||||
).add_field(
|
||||
"location",
|
||||
influxdb::Value::String(match ono.location() {
|
||||
Some(location) => location.to_string(),
|
||||
None => "?".to_string(),
|
||||
}),
|
||||
)
|
||||
.add_field(
|
||||
).add_field(
|
||||
"host",
|
||||
influxdb::Value::String(
|
||||
hostname().unwrap_or_else(|_| "?".to_string())
|
||||
),
|
||||
)
|
||||
.to_owned(),
|
||||
influxdb::Value::String(hostname().unwrap_or_else(|_| "?".to_string())),
|
||||
).to_owned(),
|
||||
);
|
||||
// Flush metrics immediately in case the process exits immediately
|
||||
// upon return
|
||||
|
Reference in New Issue
Block a user