Skip to content

Commit

Permalink
fix log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
ZigzagAK committed Mar 8, 2018
1 parent 51adaab commit 0a37ea0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ build_deps=0

DIR="$(pwd)"

VERSION="1.11.6"
VERSION="1.13.6"
PCRE_VERSION="8.39"
LUAJIT_VERSION="2.1.0-beta2"
ZLIB_VERSION="1.2.11"
Expand Down
12 changes: 6 additions & 6 deletions src/ngx_dynamic_upstream_op.c
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ ngx_dynamic_upstream_http_op_update_param(ngx_log_t *log,
if (target == NULL) {
op->status = NGX_HTTP_BAD_REQUEST;
ngx_log_error(NGX_LOG_ERR, log, 0,
"server %V is not found. %s:%d",
"peer %V is not found. %s:%d",
&op->server,
__FUNCTION__,
__LINE__);
Expand Down Expand Up @@ -795,15 +795,15 @@ ngx_dynamic_upstream_http_op_update_param(ngx_log_t *log,
target->checked = ngx_time();
target->fails = 0;
ngx_log_error(NGX_LOG_NOTICE, log, 0,
"downed server %V", &op->server);
"up peer %V", &op->server);
}

if (op->op_param & NGX_DYNAMIC_UPSTEAM_OP_PARAM_DOWN) {
target->down = 1;
target->checked = ngx_time();
target->fails = target->max_fails;
ngx_log_error(NGX_LOG_NOTICE, log, 0,
"upped server %V", &op->server);
"down peer %V", &op->server);
}

return NGX_OK;
Expand Down Expand Up @@ -832,7 +832,7 @@ ngx_dynamic_upstream_stream_op_update_param(ngx_log_t *log,
if (target == NULL) {
op->status = NGX_HTTP_BAD_REQUEST;
ngx_log_error(NGX_LOG_ERR, log, 0,
"server %V is not found. %s:%d",
"peer %V is not found. %s:%d",
&op->server,
__FUNCTION__,
__LINE__);
Expand Down Expand Up @@ -864,15 +864,15 @@ ngx_dynamic_upstream_stream_op_update_param(ngx_log_t *log,
target->checked = ngx_time();
target->fails = 0;
ngx_log_error(NGX_LOG_NOTICE, log, 0,
"downed server %V", &op->server);
"up peer %V", &op->server);
}

if (op->op_param & NGX_DYNAMIC_UPSTEAM_OP_PARAM_DOWN) {
target->down = 1;
target->checked = ngx_time();
target->fails = target->max_fails;
ngx_log_error(NGX_LOG_NOTICE, log, 0,
"upped server %V", &op->server);
"down peer %V", &op->server);
}

return NGX_OK;
Expand Down

0 comments on commit 0a37ea0

Please sign in to comment.