Skip to content

Commit

Permalink
keep log more quiet
Browse files Browse the repository at this point in the history
  • Loading branch information
an-dr-eas-k committed Oct 27, 2021
1 parent 5212feb commit 7893b3a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions bin/serve.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,12 @@ const startEndpoint = (endpoint, config, args, previous) => {
};

let sslPass = args['--ssl-pass'];
try {
sslPass = fs.readFileSync(sslPass, 'utf8').trim();
} catch (err) {
console.log('keeping plain value in ssl-pass');
if (sslPass) {
try {
sslPass = fs.readFileSync(sslPass, 'utf8').trim();
} catch (err) {
console.log('keeping plain value in ssl-pass');
}
}

const certPath = args['--ssl-cert'];
Expand Down

0 comments on commit 7893b3a

Please sign in to comment.