'use strict';

var log    = require('./log');

log.info('node-boilerplate');

module.exports.hello = function () {
  return 'world!';
};

'use strict';

var log = require('./log');


process.on('uncaughtException', function (error) {
  log.fatal({
    stack: error.stack
  }, 'Uncaught exception, exiting...');
  process.exit(1);
});



log.info('node-boilerplate');

module.exports.hello = function () {
  return 'world!';
};

Add handler to print uncaught exceptions before exiting
Add handler to print uncaught exceptions before exiting
