Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Duplicate Scriptrunner log entries from the console

Edited

I am getting immediate duplicate log entries from running scripts from the script console. This may be happening from listeners as well I have some cases it seems to but I can't 100% replicate.

I only have a single line that would print to the log that is not in a loop, unsure how this happening, I'm guessing the logging module is being loaded twice somehow?

Could someone please point me in the right direction?

Screen Shot 2021-02-17 at 5.13.14 PM.png

Screen Shot 2021-02-17 at 5.12.50 PM.png

1 answer

1 accepted

Adding this line fixed it.

log.setAdditivity(false)

Not sure why though, this seems like new behavior to me.

I thought this was the answer, I sat back down this morning, and now I get no results in my log.

I had to remove this line I added to get any log results, however yesterday, I had to have this line to remove duplicates. Nothing in the environment has changed to my knowledge.

Now, I am truly perplexed.

Did you ever find a solution for this? I'm now seeing the same thing with my Scriptrunner logs and I can't figure out why it's happening.

[Edit: We ended up bouncing our Jira instance and that solved it. Strange]

@Tom Hudgins 

Sometimes I noticed when I was changing something and had a "blip" (Lets be technical here) or an overflow that didn't actually crash everything these process threads would sometimes end up "stuck" open somehow and a bounce usually fixed the issue. I remember at one point it was either 2 lines for every entry or no lines.. and I think that's when the bounce fixed it for us.

Not a very technical answer, but it's been quite some time since I've experienced this or remember this particular issue. Just trying to do a bit of recall here.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Apps & Integrations

🍻🍂Apptoberfest Update: Upcoming Virtual Events 🎉

Hello Community! I hope you've been enjoying the 🍂Apptoberfestivities🍂 (I know I have!) The event is heating up next week with a series of virtual events that we're calling the 🍻🍂Partner App ...

107 views 1 8
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you