this is undoing recursions

log_new_thread causes a call to log_api calling log_new_thread calling...