log throwable.
fixed log with failure status to use the flag's value