Put log command in listen callback