X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Fjoinview.py;h=6f0d77c77be9a523d0e6908d41d86bb162b7f6ac;hb=92620bf17c60377b7d156a6edf2c6a3077dd2745;hp=77ce66af7c4fd92ec28439bb9a1f66fca24c5503;hpb=8e18c9ff4a961c70f897ca3915959d2fa3f7fb38;p=myslice.git diff --git a/portal/joinview.py b/portal/joinview.py index 77ce66af..6f0d77c7 100644 --- a/portal/joinview.py +++ b/portal/joinview.py @@ -1,5 +1,3 @@ -from __future__ import print_function - import os.path, re import json from random import randint @@ -24,6 +22,7 @@ from portal.models import PendingUser,PendingAuthority from portal.actions import authority_get_pi_emails, manifold_add_user,manifold_add_account, create_pending_user from myslice.theme import ThemeView +from myslice.settings import logger import activity.institution @@ -231,9 +230,9 @@ class JoinView (FreeAccessView, ThemeView): msg.send() except Exception, e: - print("Failed to send email, please check the mail templates and the SMTP configuration of your server") + logger.error("Failed to send email, please check the mail templates and the SMTP configuration of your server") import traceback - traceback.print_exc() + logger.error(traceback.format_exc()) self.template_name = 'join_complete.html' # log institution activity