Skip to content
Snippets Groups Projects

Details

Merged Jonathan Schaeffer requested to merge dblock into master
1 file
+ 1
4
Compare changes
  • Side-by-side
  • Inline
+ 1
4
@@ -20,12 +20,9 @@ else:
# Loglevel can be overrinden by LOGLEVEL env var :
if os.getenv('DEBUG') == 'true':
application.logger.setLevel(logging.DEBUG)
else:
application.logger.setLevel(logging.INFO)
application.config.from_object(Configurator)
def wsshash(login, password):
"""
Compute a hash suitable for the IRIS wss stack.
@@ -228,7 +225,7 @@ def auth():
register_privileges(login, tokendict)
return "%s:%s"%(login, password)
else:
return Response('Internal server error. Contact resif-dc@univ-grenoble-alpes.fr', status=500)
return Response("Internal server error. Contact %s"%(application.config['SUPPORT_EMAIL']), status=500)
if __name__ == "__main__":
application.logger.info("Running in %s mode"%(application.config['ENVIRONMENT']))
Loading