Commit 4db5326241e0b38c9065d5b2015aa4c383154208
1 parent
90c704f8a4
Exists in
master
modules versions
Showing 2 changed files with 12 additions and 0 deletions Side-by-side Diff
index.js
... | ... | @@ -209,6 +209,14 @@ function renderRuntimeInfo(req, res) { |
209 | 209 | totalmem: os.totalmem(), |
210 | 210 | } |
211 | 211 | |
212 | + var modules_versions = { | |
213 | + 'expresso': module.exports.version | |
214 | + } | |
215 | + | |
216 | + try { | |
217 | + modules_versions.sate24 = aaa.version; | |
218 | + } catch (e) {} | |
219 | + | |
212 | 220 | var pendings; |
213 | 221 | try { |
214 | 222 | pendings = JSON.stringify(aaa.getPendingList(), null, 2); |
... | ... | @@ -228,6 +236,7 @@ function renderRuntimeInfo(req, res) { |
228 | 236 | uptime: process.uptime(), |
229 | 237 | os_info: JSON.stringify(os_info, null, 2), |
230 | 238 | net_ifaces: JSON.stringify(os.networkInterfaces(), null, 2), |
239 | + modules_versions: JSON.stringify(modules_versions, null, 2) | |
231 | 240 | }); |
232 | 241 | } |
233 | 242 |
views/runtime-info.html