Skip to content

Commit

Permalink
style(error_log): apply PR suggestion
Browse files Browse the repository at this point in the history
Co-authored-by: Chrono <chrono_cpp@me.com>
  • Loading branch information
samugi and chronolaw committed Aug 28, 2023
1 parent 9900228 commit 727dcb5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,12 @@ you will always get the value where your Lua code runs in but not others.

lua\_kong\_error\_log\_append
-------------------------------------------
**syntax:** *lua_kong_error_log_append expression;*
**syntax:** *lua_kong_error_log_append value;*

**context:** *http* *server* *location*

Append information to the standard error log format.
Expression can contain text, variables and their combination.
Value can contain text, variables and their combination.

For example, with this configuration:
```
Expand Down
2 changes: 1 addition & 1 deletion src/ngx_http_lua_kong_log_handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ ngx_http_lua_kong_error_handler(ngx_http_request_t *r, u_char **buf, size_t *len
return;
}

if (log_append_str.len ) {
if (log_append_str.len) {

p = ngx_snprintf(*buf, len, ", %V", &log_append_str);
len -= p - *buf;
Expand Down

0 comments on commit 727dcb5

Please sign in to comment.