Removes unnecessary log messages.