Skip to content

Commit 7c45b58

Browse files
author
gkowalc
committed
refactoring log.warn logging levels
1 parent fc86bc1 commit 7c45b58

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

atlassian/insight.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def upload_attachment_to_object(self, object_id, filename):
118118
"""
119119
if self.cloud:
120120
raise NotImplementedError
121-
log.warning("Adding attachment...")
121+
log.info("Adding attachment...")
122122
url = "rest/insight/1.0/attachments/object/{objectId}".format(objectId=object_id)
123123
with open(filename, "rb") as attachment:
124124
files = {"file": attachment}
@@ -131,7 +131,7 @@ def delete_attachment(self, attachment_id):
131131
"""
132132
if self.cloud:
133133
raise NotImplementedError
134-
log.warning("Adding attachment...")
134+
log.info("Deleting attachment...")
135135
url = "rest/insight/1.0/attachments/{attachmentId}".format(attachmentId=attachment_id)
136136
return self.delete(url)
137137

@@ -373,7 +373,6 @@ def get_object_history(self, object_id, asc=False, abbreviate=True):
373373
@deprecated(version="3.29.0", reason="Use get_object_reference_info()")
374374
def get_object_referenceinfo(self, object_id):
375375
"""Let's use the get_object_reference_info()"""
376-
log.warning("Please, be informed that is deprecated as typo naming")
377376
self.get_object_reference_info(object_id)
378377

379378
def get_object_reference_info(self, object_id):

0 commit comments

Comments
 (0)