From 62cbb15089249421460a53a7931c0bc91c152712 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Tue, 11 Mar 2014 12:21:00 +0100 Subject: [PATCH] Include tiler version in startup log --- NEWS.md | 4 ++++ app.js | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/NEWS.md b/NEWS.md index 7b9c536d..2fae4aa5 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,6 +1,10 @@ 1.9.1 -- 2014-MM-DD ------------------- +Enhancements: + + - Include tiler version in startup log + 1.9.0 -- 2014-03-10 ------------------- diff --git a/app.js b/app.js index fc877740..70f75558 100755 --- a/app.js +++ b/app.js @@ -53,8 +53,10 @@ ws.maxConnections = global.environment.maxConnections || 128; ws.listen(global.environment.port, global.environment.host); +var version = require("./package").version; + ws.on('listening', function() { - console.log("Windshaft tileserver started on " + console.log("Windshaft tileserver " + version + " started on " + global.environment.host + ':' + global.environment.port + " (" + ENV + ")"); });