fixing log statements