Fix condition for finding call to $log.