Minor refactor of logging statement