Fix logging function pr's line number reporting