Commit 569f17ff authored by marcel's avatar marcel
Browse files

Remove extension loading error log when not in dev mode.

parent b7b3d6c7
......@@ -42,8 +42,11 @@ define(["jquery", "emitter", "vispa/module", "vispa/ui"], function($, Emitter, M
this.extensionsLoading++;
require(["extensions/"+name+"/static/js/extension"],
this.registerExtension.bind(this),
function (err){
self.logger.error("extension '%s' failed to load due to: %s", err.requireModules[0].split("/")[1], err.requireType);
function(err) {
if (vispa.args.global.devMode) {
self.logger.error("extension '%s' failed to load due to: %s",
err.requireModules[0].split("/")[1], err.requireType);
}
self._checkExtensionsLoaded();
});
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment