Fixing log stuff