Topic: asserts and redirect to file
Tibor Topic Opener |
Posted at:
2016-09-17, 21:04 UTC+2.0
Hi I am redirecting console output of game to a file like this: widelands 2>&1 | tee $filename But I noticed the assert text (the game crashed due to assert) is not redirected to the file and thus it is lost to me, unless I by chance spot the text in terminal. I tried to google but somehow I cannot find relevant information what is the issue. Any ideas how to do it? Thanks ![]() ![]() |
GunChleoc![]() |
Posted at:
2016-09-18, 07:45 UTC+2.0
I guess it depends on whether they are printed to stderr or stdout. Maybe this page will help: http://www.cyberciti.biz/faq/redirecting-stderr-to-stdout/ Busy indexing nil values ![]() ![]() |
Tibor Topic Opener |
Posted at:
2016-09-19, 21:44 UTC+2.0
I already have stderr redirected to stdout, see my post above. It looks like assert text is not printed by widelands binary but something else... ![]() ![]() |
GunChleoc![]() |
Posted at:
2016-09-20, 08:11 UTC+2.0
I've done some more digging, and all I found out is that it's a macro. So, I guess it would depend on your compiler where it goes. Busy indexing nil values ![]() ![]() |