MT#7955 Enhance logging for by_alias handling