improving logging message