text: const { isObject } = require('lodash')
  
  module.exports = function logBoomError (boomErr, tymly) {
    let message = '--------------------------------------------------------------------------------------\n'
    message += `|${boomErr.output.statusCode}: ${boomErr.output.payload.error}\n`
    message += `|${boomErr.message}\n`
    if (isObject(boomErr.data)) {
      message += `|${JSON.stringify(boomErr.data, null, 2)}\n`
    }
    message += '--------------------------------------------------------------------------------------\n\n'
    console.error(message)
  }
  