Commit 430b4b944d959f47fae9cef307325a7f4c497947
Log server errors
cel committed on 11/5/2016, 5:07:22 PMParent: 07c65eb6badf7eed11d56d8791156f8e161528ec
Files changed
lib/server.js | changed |
lib/server.js | ||
---|---|---|
@@ -47,8 +47,12 @@ | ||
47 | 47 … | var server = Dnsd.createServer(function(req, res) { |
48 | 48 … | answer(sbot, req, res, opt); |
49 | 49 … | }); |
50 | 50 … | |
51 … | + server.on('error', function (msg, error, conn) { | |
52 … | + console.error(error.stack) | |
53 … | + }); | |
54 … | + | |
51 | 55 … | return server.listen(port, host, cb); |
52 | 56 … | }; |
53 | 57 … | |
54 | 58 … | Server.listen = function (sbot, port, host, cb, opt) { |
Built with git-ssb-web