adapting logger exception message