Formatting

This commit is contained in:
Daniel García
2019-04-26 22:08:26 +02:00
parent eadab2e9ca
commit 874f5c34bd
6 changed files with 18 additions and 14 deletions

View File

@ -90,9 +90,10 @@ fn init_logging() -> Result<(), fern::InitError> {
if let Some(log_file) = CONFIG.log_file() {
logger = logger.chain(fern::log_file(log_file)?);
}
#[cfg(not(windows))] {
if cfg!(feature="enable_syslog") || CONFIG.use_syslog() {
#[cfg(not(windows))]
{
if cfg!(feature = "enable_syslog") || CONFIG.use_syslog() {
logger = chain_syslog(logger);
}
}