Skip to content

Commit

Permalink
fix #64
Browse files Browse the repository at this point in the history
  • Loading branch information
megastef committed Apr 27, 2017
1 parent bab4041 commit c837d21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/core/cliArgs.js
Expand Up @@ -107,10 +107,10 @@ module.exports = (function () {
}
// overwrite env var from CLI for logsene-js
process.LOGSENE_MAX_MESSAGE_FIELD_SIZE = argv.maxLogSize
if (argv.geoipEnabled === 'true') {
if (argv.geoipEnabled === 'true' || argv.geoipEnabled === true) {
process.env.GEOIP_ENABLED = 'true'
}
if (argv.geoipEnabled === 'false') {
if (argv.geoipEnabled === 'false' || argv.geoipEnabled === false) {
process.env.GEOIP_ENABLED = 'false'
}
return argv
Expand Down

0 comments on commit c837d21

Please sign in to comment.