diff --git a/blueprints/ember-cli-bugsnag/files/app/initializers/bugsnag.js b/blueprints/ember-cli-bugsnag/files/app/initializers/bugsnag.js index e47823a..1006967 100644 --- a/blueprints/ember-cli-bugsnag/files/app/initializers/bugsnag.js +++ b/blueprints/ember-cli-bugsnag/files/app/initializers/bugsnag.js @@ -11,16 +11,19 @@ export default { Ember.onerror = function (error) { Bugsnag.context = container.lookup('router:main').get('location').getURL(); Bugsnag.notifyException(error); + console.error(error.stack); }; Ember.RSVP.on('error', function(error) { Bugsnag.context = container.lookup('router:main').get('location').getURL(); Bugsnag.notifyException(error); + console.error(error.stack); }); Ember.Logger.error = function (message, cause, stack) { Bugsnag.context = container.lookup('router:main').get('location').getURL(); Bugsnag.notifyException(new Error(message), null, { cause: cause, stack: stack }); + console.error(stack); }; } } diff --git a/package.json b/package.json index f187c43..339a98c 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,8 @@ "ember-data": "1.0.0-beta.14.1", "ember-export-application-global": "^1.0.2", "express": "^4.8.5", - "glob": "^4.0.5" + "glob": "^4.0.5", + "rimraf": "2.2.8" }, "keywords": [ "ember-addon"