Skip to content

Commit

Permalink
debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw committed Jul 4, 2023
1 parent 38df207 commit fa3fe7a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/ngx_lua_resty_lmdb_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,8 @@ ngx_lua_resty_lmdb_validate(ngx_cycle_t *cycle,
/* check tag value in lmdb */

if (lcf->validation_tag.data == NULL) {
ngx_log_debug0(NGX_LOG_DEBUG_CORE, cycle->log, 0,
"LMDB validation disabled");
return NGX_OK;
}

Expand Down
4 changes: 3 additions & 1 deletion t/10-validation-tag-plain.t
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use Cwd qw(cwd);

repeat_each(1);

plan tests => repeat_each() * blocks() * 5 + 2;
plan tests => repeat_each() * blocks() * 6;

my $pwd = cwd();

Expand Down Expand Up @@ -65,6 +65,8 @@ true
value
nil
nil
--- error_log
LMDB validation disabled
--- no_error_log
[error]
[warn]
Expand Down

0 comments on commit fa3fe7a

Please sign in to comment.