fix 4166 - better logging of deprecated tags