Fix log raw argument to be an open file, not a filename