Add session to log triggered by request failure, backport #1160