From 7c45b5845b0e6eca555f11f203d486034d990756 Mon Sep 17 00:00:00 2001 From: gkowalc Date: Fri, 18 Oct 2024 12:58:26 +0200 Subject: [PATCH] refactoring log.warn logging levels --- atlassian/insight.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/atlassian/insight.py b/atlassian/insight.py index 23aa693b6..fc9dc4668 100644 --- a/atlassian/insight.py +++ b/atlassian/insight.py @@ -118,7 +118,7 @@ def upload_attachment_to_object(self, object_id, filename): """ if self.cloud: raise NotImplementedError - log.warning("Adding attachment...") + log.info("Adding attachment...") url = "rest/insight/1.0/attachments/object/{objectId}".format(objectId=object_id) with open(filename, "rb") as attachment: files = {"file": attachment} @@ -131,7 +131,7 @@ def delete_attachment(self, attachment_id): """ if self.cloud: raise NotImplementedError - log.warning("Adding attachment...") + log.info("Deleting attachment...") url = "rest/insight/1.0/attachments/{attachmentId}".format(attachmentId=attachment_id) return self.delete(url) @@ -373,7 +373,6 @@ def get_object_history(self, object_id, asc=False, abbreviate=True): @deprecated(version="3.29.0", reason="Use get_object_reference_info()") def get_object_referenceinfo(self, object_id): """Let's use the get_object_reference_info()""" - log.warning("Please, be informed that is deprecated as typo naming") self.get_object_reference_info(object_id) def get_object_reference_info(self, object_id):