Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Logger stops working on transitions

Ilya Feldshteyn September 21, 2018

Hello,

 

I have a transition called Complete. For each sub task it also transitions them to Complete. 

 

However, I've noticed that my logger stops working when I execute transitions. 

My log setup is

import org.apache.log4j.Logger
import org.apache.log4j.Level

def log = Logger.getLogger("")
log.setLevel(Level.DEBUG)

 

//Parent Task running and for each subtask it would call for each subtask....

workflowTransitionUtil.setIssue(subtask)
workflowTransitionUtil.setAction(41) // 41 is "Complete" transition 

log.info("TEST")
workflowTransitionUtil.progress()
log.info("TEST2")

 

I would see TEST and then not see TEST2 in the logs even though all further logic works, it's just that the logging stops. There are no errors. I am assuming the subtask transitions somehow override the logger? Is there anyway to undo this behaviour in Script Runner?

Our jira is 7.6.0 and Script Runner is 5.4.12

Thanks,

Ilya 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events