Minor error log performance fix