Use log instead of fmt for some input