Skip to content

Commit

Permalink
log: logging error when upstream is not found.
Browse files Browse the repository at this point in the history
  • Loading branch information
cubicdaiya committed May 20, 2015
1 parent e7d46ca commit 346a102
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ngx_dynamic_upstream_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,10 @@ ngx_dynamic_upstream_handler(ngx_http_request_t *r)

uscf = ngx_dynamic_upstream_get_zone(r, &op);
if (uscf == NULL) {
ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
"upstream is not found. %s:%d",
__FUNCTION__,
__LINE__);
return NGX_HTTP_BAD_REQUEST;
}

Expand Down

0 comments on commit 346a102

Please sign in to comment.