Log only non-default config

This commit is contained in:
Zaid Abdulla committed 2017-11-12 13:01:39 -08:00
1 parent 6bfe590b0d
commit ec57131d51
2 files changed
+18 -2

No files matched your search

+10
View File
@@ -190,8 +190,18 @@ get = (option, deviceId) ->
return allConfig[option]
getDefault = (optionName) ->
option = options[optionName]
return null if not option
val = option.default
if val and option.type == 'path'
val = path.resolve(val)
return val
# load authentication scripts
try
exports.auth = require(path.resolve(allConfig.CONFIG_DIR, 'auth'))
exports.get = get
exports.getDefault = getDefault