| 507 | |
| 508 | return r; |
| 509 | } catch (Error& e) { |
| 510 | double elapsed = timer() - send_start; |
| 511 | // A bad_request_id error would have already been logged in verbose mode before err is thrown above. |
| 512 | if (FLOW_KNOBS->HTTP_VERBOSE_LEVEL > 0 && e.code() != error_code_http_bad_request_id) { |
| 513 | printf("[%s] HTTP *ERROR*=%s early=%d, time=%fs %s %s contentLen=%d [%d out]\n", |
| 514 | conn->getDebugID().toString().c_str(), |
| 515 | e.name(), |
| 516 | earlyResponse, |
| 517 | elapsed, |
| 518 | verb.c_str(), |
| 519 | resource.c_str(), |
| 520 | contentLen, |
| 521 | total_sent); |
| 522 | } |
| 523 | event.errorUnsuppressed(e); |
| 524 | throw; |
| 525 | } |
| 526 | } |
| 527 | |
| 528 | } // namespace HTTP |