task.doLog() can cope with undefined parameter