Skip to content
Snippets Groups Projects
Commit f5c9c48f authored by Andrew Newdigate's avatar Andrew Newdigate
Browse files

Feature: use `getBool` for parsing environment variables

parent 22f6dae6
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -7,7 +7,7 @@ function createWinstonContainer(config) {
function getTransports() {
var results = [];
 
if(config.get("logging:logToUDP")) {
if(config.getBool("logging:logToUDP")) {
var appName = processName.getGenericProcessName();
 
if (appName) {
Loading
Loading
@@ -37,10 +37,10 @@ function createWinstonContainer(config) {
}
}
 
if(!config.get("logging:disableConsole") && !process.env.DISABLE_CONSOLE_LOGGING) {
if(!config.getBool("logging:disableConsole") && !process.env.DISABLE_CONSOLE_LOGGING) {
var consoleTransport = new winston.transports.Console({
colorize: config.get("logging:colorize"),
timestamp: config.get("logging:timestamp"),
colorize: config.getBool("logging:colorize"),
timestamp: config.getBool("logging:timestamp"),
level: config.get("logging:level"),
prettyPrint: config.get("logging:prettyPrint")
});
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment