Skip to content

Commit

Permalink
Merge pull request #14 from panosc-eu/v2.17-alpha
Browse files Browse the repository at this point in the history
added logging configuration to status endpoint
  • Loading branch information
nitrosx authored Dec 15, 2022
2 parents 6ddb6fe + d6bace0 commit 1e0daaf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion search-api/server/boot/root.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ module.exports = function (server) {
const provider_timeout_ms = parseInt(process.env.PROVIDER_TIMEOUT || "1000");
const default_limit = parseInt(process.env.DEFAULT_LIMIT || "100");
const filter_invalid_scores = utils.getBoolEnvVar("FILTER_INVALID_SCORES", true);
const logging = process.env.LOGGING || "unknown";

function format(seconds) {
function pad(s) {
Expand All @@ -44,7 +45,8 @@ module.exports = function (server) {
'data_providers': data_providers,
'provider_timeout_ms': provider_timeout_ms,
'default_limit': default_limit,
'filter_invalid_scores': filter_invalid_scores
'filter_invalid_scores': filter_invalid_scores,
'logging': logging,
};

res.send(response_string);
Expand Down

0 comments on commit 1e0daaf

Please sign in to comment.