sentry stuff
This commit is contained in:
parent
761cb38e3b
commit
7ed859d8e5
1 changed files with 2 additions and 2 deletions
|
@ -123,11 +123,11 @@ client.eventLoader.loadEventModules();
|
|||
client.createEventListeners();
|
||||
|
||||
// Development mode is set in botconfig.yml, and disables some stuff if enabled. Imagine how messy Sentry would be without this!
|
||||
if (client.config.devmode === true) {
|
||||
if (client.config.developmentMode === false) {
|
||||
try {
|
||||
sentry.init({ dsn: client.config.keys.sentry });
|
||||
} catch (err) {
|
||||
client.logger.error('SENTRY_INIT_ERROR', `Sentry failed to initialize: ${err}`);
|
||||
client.logger.error('SENTRY_INIT_ERROR', `Sentry failed to initialize: ${err}`);
|
||||
}
|
||||
} else {
|
||||
client.logger.warning('DEVELOPMENT_MODE', 'Running in development mode, some features have been disabled.');
|
||||
|
|
Loading…
Reference in a new issue