Revise logging with informative error messages.