Converted perrlog to macro so it doens't change __LINE__