Replaced stack printing with logger output.