mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2024-12-22 22:45:12 +01:00
tokio::signal::unix::SignalKind::hangup().as_raw_value() insted of 1
This commit is contained in:
parent
193f86e43e
commit
b435ee49ad
1 changed files with 1 additions and 1 deletions
|
@ -332,7 +332,7 @@ fn init_logging(level: log::LevelFilter) -> Result<(), fern::InitError> {
|
|||
}
|
||||
#[cfg(not(windows))]
|
||||
{
|
||||
const SIGHUP: i32 = 1;
|
||||
const SIGHUP: i32 = tokio::signal::unix::SignalKind::hangup().as_raw_value();
|
||||
let path = Path::new(&log_file);
|
||||
logger = logger.chain(fern::log_reopen1(path, [SIGHUP])?);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue