Browse Source

remove sentry_dsn warning

use INFO on runbot to report this
pull/211/head
Alexandre Fayolle 10 years ago
parent
commit
e386b31378
  1. 8
      sentry_logger/__init__.py

8
sentry_logger/__init__.py

@ -20,6 +20,7 @@
#
###############################################################################
import os
import logging
import cgitb
@ -54,7 +55,12 @@ try:
handler = OdooSentryHandler(client, level=level)
root_logger.addHandler(handler)
else:
root_logger.warn(u"Sentry DSN not defined in config file")
msg = u"Sentry DSN not defined in config file"
if os.environ.get('OCA_CI'):
# don't fail the build on runbot for this
root_logger.info(msg)
else:
root_logger.warn(msg)
client = None
# Inject sentry_activated to session to display error message or not

Loading…
Cancel
Save