Logging from alternate thread fails when console is open
jasonrclark opened this issue · 0 comments
jasonrclark commented
Because the logger writes straight to UI elements when the console is open, it will fail with loud thread access errors.
Run this, click the button to open the console and just wait:
Shoes.app do
Thread.new do
while true
Shoes.logger.error("boo")
sleep 5
end
end
button "console yourself" do
Shoes.console.show
end
end