Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
lazytiger committed Mar 19, 2020
1 parent d2407a1 commit 62efa0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ pub fn setup_logger(logfile: &Option<String>, level: u8) {
})
.level(level);
if logfile.is_some() {
cfg_if::cfg_if!{
cfg_if::cfg_if! {
if #[cfg(unix)] {
let path = std::path::Path::new(logfile.as_ref().unwrap().as_str());
builder = builder.chain(fern::log_reopen(path, Some(libc::SIGUSR2)).unwrap());
Expand Down

0 comments on commit 62efa0f

Please sign in to comment.