Skip to content

Commit

Permalink
refactoring log.warn logging levels
Browse files Browse the repository at this point in the history
  • Loading branch information
gkowalc committed Oct 18, 2024
1 parent fc86bc1 commit 7c45b58
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions atlassian/insight.py
Original file line number Diff line number Diff line change
Expand Up @@ -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...")

Check warning on line 121 in atlassian/insight.py

View check run for this annotation

Codecov / codecov/patch

atlassian/insight.py#L121

Added line #L121 was not covered by tests
url = "rest/insight/1.0/attachments/object/{objectId}".format(objectId=object_id)
with open(filename, "rb") as attachment:
files = {"file": attachment}
Expand All @@ -131,7 +131,7 @@ def delete_attachment(self, attachment_id):
"""
if self.cloud:
raise NotImplementedError
log.warning("Adding attachment...")
log.info("Deleting attachment...")

Check warning on line 134 in atlassian/insight.py

View check run for this annotation

Codecov / codecov/patch

atlassian/insight.py#L134

Added line #L134 was not covered by tests
url = "rest/insight/1.0/attachments/{attachmentId}".format(attachmentId=attachment_id)
return self.delete(url)

Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 7c45b58

Please sign in to comment.