Improves logging code locations.