@@ -599,7 +599,7 @@ def get_component_related_issues(self, component_id):
599
599
return self .get (url )
600
600
601
601
def create_component (self , component ):
602
- log .warning ('Creating component "%s"' , component ["name" ])
602
+ log .info ('Creating component "%s"' , component ["name" ])
603
603
base_url = self .resource_url ("component" )
604
604
url = "{base_url}/" .format (base_url = base_url )
605
605
return self .post (url , data = component )
@@ -610,7 +610,7 @@ def update_component(self, component, component_id):
610
610
return self .put (url , data = component )
611
611
612
612
def delete_component (self , component_id ):
613
- log .warning ('Deleting component "%s"' , component_id )
613
+ log .info ('Deleting component "%s"' , component_id )
614
614
base_url = self .resource_url ("component" )
615
615
return self .delete ("{base_url}/{component_id}" .format (base_url = base_url , component_id = component_id ))
616
616
@@ -965,7 +965,7 @@ def remove_group(self, name, swap_group=None):
965
965
:param swap_group: str - swap group
966
966
:return:
967
967
"""
968
- log .warning ("Removing group..." )
968
+ log .info ("Removing group: %s " , name )
969
969
url = self .resource_url ("group" )
970
970
if swap_group is not None :
971
971
params = {"groupname" : name , "swapGroup" : swap_group }
@@ -1030,7 +1030,7 @@ def remove_user_from_group(self, username=None, group_name=None, account_id=None
1030
1030
:param group_name: str
1031
1031
:return:
1032
1032
"""
1033
- log .warning ("Removing user from a group..." )
1033
+ log .info ("Removing user: %s from a group: %s" , username , group_name )
1034
1034
url = self .resource_url ("group/user" )
1035
1035
url_domain = self .url
1036
1036
if "atlassian.net" in url_domain :
@@ -1422,7 +1422,7 @@ def add_attachment_object(self, issue_key, attachment):
1422
1422
:param issue_key: str
1423
1423
:param attachment: IO Object
1424
1424
"""
1425
- log .warning ("Adding attachment..." )
1425
+ log .info ("Adding attachment: %s" , attachment )
1426
1426
base_url = self .resource_url ("issue" )
1427
1427
url = "{base_url}/{issue_key}/attachments" .format (base_url = base_url , issue_key = issue_key )
1428
1428
if attachment :
@@ -1472,13 +1472,13 @@ def delete_issue(self, issue_id_or_key, delete_subtasks=True):
1472
1472
else :
1473
1473
params ["deleteSubtasks" ] = "false"
1474
1474
1475
- log .warning ("Removing issue %s..." , issue_id_or_key )
1475
+ log .info ("Removing issue %s..." , issue_id_or_key )
1476
1476
1477
1477
return self .delete (url , params = params )
1478
1478
1479
1479
# @todo merge with edit_issue method
1480
1480
def issue_update (self , issue_key , fields ):
1481
- log .warning ('Updating issue "%s" with "%s"' , issue_key , fields )
1481
+ log .info ('Updating issue "%s" with "%s"' , issue_key , fields )
1482
1482
base_url = self .resource_url ("issue" )
1483
1483
url = "{base_url}/{issue_key}" .format (base_url = base_url , issue_key = issue_key )
1484
1484
return self .put (url , data = {"fields" : fields })
@@ -1512,7 +1512,7 @@ def issue_add_watcher(self, issue_key, user):
1512
1512
:param user:
1513
1513
:return:
1514
1514
"""
1515
- log .warning ('Adding user %s to "%s" watchers' , user , issue_key )
1515
+ log .info ('Adding user %s to "%s" watchers' , user , issue_key )
1516
1516
data = user
1517
1517
base_url = self .resource_url ("issue" )
1518
1518
return self .post (
@@ -1527,7 +1527,7 @@ def issue_delete_watcher(self, issue_key, user):
1527
1527
:param user:
1528
1528
:return:
1529
1529
"""
1530
- log .warning ('Deleting user %s from "%s" watchers' , user , issue_key )
1530
+ log .info ('Deleting user %s from "%s" watchers' , user , issue_key )
1531
1531
params = {"username" : user }
1532
1532
base_url = self .resource_url ("issue" )
1533
1533
return self .delete (
@@ -1613,7 +1613,7 @@ def create_issues(self, list_of_issues_data):
1613
1613
1614
1614
# @todo refactor and merge with create_issue method
1615
1615
def issue_create (self , fields ):
1616
- log .warning ('Creating issue "%s"' , fields ["summary" ])
1616
+ log .info ('Creating issue "%s"' , fields ["summary" ])
1617
1617
url = self .resource_url ("issue" )
1618
1618
return self .post (url , data = {"fields" : fields })
1619
1619
@@ -2141,7 +2141,7 @@ def user_create(self, username, email, display_name, password=None, notification
2141
2141
Default:false.
2142
2142
:return:
2143
2143
"""
2144
- log .warning ("Creating user %s" , display_name )
2144
+ log .info ("Creating user %s" , display_name )
2145
2145
data = {
2146
2146
"name" : username ,
2147
2147
"emailAddress" : email ,
0 commit comments