LP#1824184: Change potentially slow log statements to subroutines