1
0
mirror of https://github.com/NLnetLabs/routinator.git synced 2024-05-19 06:50:04 +00:00

Don’t complain if RRDP state file is missing.

This commit is contained in:
Martin Hoffmann
2019-09-12 10:48:41 +02:00
parent 95c8f4689c
commit 9eccca5eed

View File

@ -613,10 +613,13 @@ pub struct ServerState {
impl ServerState {
pub fn load(path: &Path) -> Result<Self, Error> {
Self::_load(path).map_err(|err| {
info!(
"Failed to read state file '{}': {}",
path.display(), err
);
// Not found is mostly normal, dont complain about that.
if err.kind() != io::ErrorKind::NotFound {
info!(
"Failed to read state file '{}': {}",
path.display(), err
);
}
Error
})
}