diff --git a/query_task/_query_task.py b/query_task/_query_task.py index 43267e6..7c1e2dd 100644 --- a/query_task/_query_task.py +++ b/query_task/_query_task.py @@ -53,7 +53,7 @@ def push(self, title, content, jump_url=None, pic_url=None, extend_data=None): for item in self.target_push_name_list: target_push_channel = push_channel.push_channel_dict.get(item, None) if target_push_channel is None: - log.error(f"【{self.type}】推送通道【{item}】不存在") + log.error(f"【{self.name}】推送通道【{item}】不存在") else: try: if extend_data is None: @@ -74,4 +74,4 @@ def push(self, title, content, jump_url=None, pic_url=None, extend_data=None): } target_push_channel.push(title, content, jump_url, pic_url, extend_data) except Exception as e: - log.error(f"【{self.type}】推送通道【{item}】出错:{e}", exc_info=True) + log.error(f"【{self.name}】推送通道【{item}】出错:{e}", exc_info=True)