[update] log on removal of socket file.

main
Aakash Sen Sharma 2 years ago committed by GitHub
commit 31620b8169
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

Binary file not shown.

@ -50,7 +50,9 @@ fn main() -> Result<(), Box<dyn Error>> {
if Path::new(&sockfile).exists() {
log::trace!("Sockfile exists, attempting to remove it.");
match fs::remove_file(&sockfile) {
Ok(_) => {}
Ok(_) => {
log::debug!("Removed old socket file");
}
Err(e) => {
log::error!("Error removeing the socket file!: {}", e);
exit(1);

Loading…
Cancel
Save