log command before the execution