fixed bug in logger, failing when backtrace was not accessible