log messages improvement