Outputting the tread name if thread is killed by force

Is there any downside if in case a thread is killed by force, the thread name is added to the warning message? E.g. change line 234 of juce_Thread.cpp to

Logger::writeToLog ("!! killing thread " + threadName + " by force !!");

Reason: I was just trying to find a bug where a thread was killed in a release build only, so I just saw that a thread had been killed but not which thread. Changing this line helped me to find the source of the error.