Skip to content

Commit

Permalink
Add a warning for non-existant log files
Browse files Browse the repository at this point in the history
  • Loading branch information
ekmartin committed Nov 8, 2017
1 parent 084b670 commit a2cd7db
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion dataflow/src/domain/mod.rs
Expand Up @@ -1536,7 +1536,15 @@ impl Domain {

let file = match File::open(&path) {
Ok(f) => f,
Err(ref e) if e.kind() == ErrorKind::NotFound => continue,
Err(ref e) if e.kind() == ErrorKind::NotFound => {
warn!(
self.log,
"No log file found for node {}, starting with empty state",
local_addr
);

continue;
}
Err(e) => panic!("Could not open log file {:?}: {}", path, e),
};

Expand Down

0 comments on commit a2cd7db

Please sign in to comment.