'use strict'
let logger = require('js-logger-aknudsen').get('environment')

module.exports = {
  getEnvParam: (key, dflt) => {
    let value = process.env[key]
    if (value == null) {
      if (dflt === undefined) {
        logger.error(`${key} not defined in environment`)
        reply(Boom.badImplementation())
      } else {
        return dflt
      }
    } else {
      return value
    }
  },
}

@@ -222,16 +222,19 @@
     
-logger.e
+throw new E
 rror
@@ -275,48 +275,8 @@
 t%60)%0A
-        reply(Boom.badImplementation())%0A
     

Fix getEnvParam