Skip to content

Commit

Permalink
OKAPI-1147: Add log_wait_ms config to okapi.conf and okapi.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
julianladisch committed Dec 20, 2022
1 parent 1a00832 commit e27970a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dist/okapi.conf
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,8 @@ vertx_cache_dir_base="/tmp/vertx-cache-okapi"

# The maximum number of token cache entries. Defaults to 10000.
# token_cache_max_size = 10000

# Controls how often in milliseconds Okapi logs a `WAIT` line for ongoing request.
# A value of 0 disables this and is also the default.
# log_wait_ms = 0

4 changes: 4 additions & 0 deletions dist/okapi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,10 @@ parse_okapi_conf() {
OKAPI_JAVA_OPTS+=" -Dtoken_cache_max_size=${token_cache_max_size}"
fi

if [ "$log_wait_ms" ]; then
OKAPI_JAVA_OPTS+=" -Dlog_wait_ms=${log_wait_ms}"
fi

} # end parse_okapi_conf


Expand Down

0 comments on commit e27970a

Please sign in to comment.