Skip to content

Instantly share code, notes, and snippets.

@jstrimpel
Created November 18, 2014 23:39
Show Gist options
  • Save jstrimpel/8eb67d5afc463c09eeeb to your computer and use it in GitHub Desktop.
Save jstrimpel/8eb67d5afc463c09eeeb to your computer and use it in GitHub Desktop.
server debugging
// https://github.com/walmartlabs/lazojs/wiki/Server-Setup
// app/server/server.js
define(['lazoServer'], function (LazoServer) {
'use strict';
return LazoServer.extend({
setup: function (hapi, pack, servers, options) {
for (var k in servers) {
servers[k].on('internalError', function (req, err) {
console.log(err.stack);
});
}
options.success();
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment