Fix error thrown by log not existing.