Created
November 18, 2014 23:39
-
-
Save jstrimpel/8eb67d5afc463c09eeeb to your computer and use it in GitHub Desktop.
server debugging
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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