change log message format, remove unused log handler, fix compile warning