fix 4166 - better logging of deprecated tags

I tested it locally. Works :-) Helped me to find which deprecated tag was used