From f31c574f7aaf17a26b19e69a647b0849234feaaa Mon Sep 17 00:00:00 2001 From: Nathan Perry Date: Wed, 14 Feb 2018 12:51:25 -0500 Subject: add after logging --- src/main.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index aca5b7b..8c83fab 100644 --- a/src/main.rs +++ b/src/main.rs @@ -80,10 +80,11 @@ fn run() -> Result<()> { }) .after(|_ctx, _msg, _cmd, err| { match err { - Ok(()) => {}, - Err(_e) => { - - + Ok(()) => { + trace!("command completed successfully"); + }, + Err(e) => { + error!("encountered error: {:?}", e); } } }) -- cgit v1.3.1