mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 19:46:01 +01:00
Plugin metrics (#7626)
* feat: add enable/disable checkbox for plugin usage * feat: submit plugin data to packages.nodebb.org only submit in production mode submit once every 24 hours dont submit for plugins that have "private": true in plugin.json enabled on new installs disabled on existing installs * fix: hash not working after first send fix statusCode * fix: remove url * feat: show compatibilty * feat: add install question for submit plugin usage
This commit is contained in:
committed by
GitHub
parent
3f4f8aface
commit
5fa5e999f8
@@ -150,8 +150,16 @@ module.exports = function (Plugins) {
|
||||
},
|
||||
], function (err) {
|
||||
if (err) {
|
||||
winston.error(err.stack);
|
||||
winston.verbose('[plugins] Could not load plugin : ' + pluginData.id);
|
||||
return callback(err);
|
||||
return callback();
|
||||
}
|
||||
|
||||
if (!pluginData.private) {
|
||||
Plugins.loadedPlugins.push({
|
||||
id: pluginData.id,
|
||||
version: pluginData.version,
|
||||
});
|
||||
}
|
||||
|
||||
winston.verbose('[plugins] Loaded plugin: ' + pluginData.id);
|
||||
@@ -196,9 +204,8 @@ module.exports = function (Plugins) {
|
||||
callback();
|
||||
}
|
||||
} catch (err) {
|
||||
winston.error(err.stack);
|
||||
winston.warn('[plugins] Unable to parse library for: ' + pluginData.id);
|
||||
callback();
|
||||
callback(err);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user