Improve logging of automatic warnings