mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-20 06:29:53 +01:00
show versions of plugins at startup, fixes #2642
This commit is contained in:
parent
dbb2956d2f
commit
1f471b0f81
2 changed files with 12 additions and 1 deletions
|
@ -67,7 +67,7 @@ async.waterfall([
|
|||
},
|
||||
|
||||
function (callback) {
|
||||
console.info("Installed plugins: " + plugins.formatPlugins());
|
||||
console.info("Installed plugins: " + plugins.formatPluginsWithVersion());
|
||||
console.debug("Installed parts:\n" + plugins.formatParts());
|
||||
console.debug("Installed hooks:\n" + plugins.formatHooks());
|
||||
|
||||
|
|
|
@ -26,6 +26,17 @@ exports.formatPlugins = function () {
|
|||
return _.keys(exports.plugins).join(", ");
|
||||
};
|
||||
|
||||
exports.formatPluginsWithVersion = function () {
|
||||
var plugins = [];
|
||||
_.forEach(exports.plugins, function(plugin){
|
||||
if(plugin.package.name !== "ep_etherpad-lite"){
|
||||
var pluginStr = plugin.package.name + "@" + plugin.package.version;
|
||||
plugins.push(pluginStr);
|
||||
}
|
||||
});
|
||||
return plugins.join(", ");
|
||||
};
|
||||
|
||||
exports.formatParts = function () {
|
||||
return _.map(exports.parts, function (part) { return part.full_name; }).join("\n");
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue