mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-12 05:50:16 +02:00
Add Exception messages to exception logging
This commit is contained in:
parent
43cbfd1c47
commit
1ddb041d6d
@ -176,8 +176,8 @@ class SmfManager:
|
|||||||
try:
|
try:
|
||||||
cursor.execute(cls.SQL_DIS_USER, [email_address, passwd, username])
|
cursor.execute(cls.SQL_DIS_USER, [email_address, passwd, username])
|
||||||
logger.info("Updated smf user %s info" % username)
|
logger.info("Updated smf user %s info" % username)
|
||||||
except:
|
except Exception as e:
|
||||||
logger.exception("Unable to update smf user %s info." % username)
|
logger.exception("Unable to update smf user %s info. (%s)" % username, e)
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
@ -218,8 +218,8 @@ class SmfManager:
|
|||||||
cursor = connections['smf'].cursor()
|
cursor = connections['smf'].cursor()
|
||||||
cursor.execute(cls.SQL_ADD_USER_GROUP, [groupid, userid])
|
cursor.execute(cls.SQL_ADD_USER_GROUP, [groupid, userid])
|
||||||
logger.info(f"Added smf user id {userid} to group id {groupid}")
|
logger.info(f"Added smf user id {userid} to group id {groupid}")
|
||||||
except:
|
except Exception as e:
|
||||||
logger.exception(f"Unable to add smf user id {userid} to group id {groupid}")
|
logger.exception(f"Unable to add smf user id {userid} to group id {groupid} ({e})")
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
@ -229,8 +229,8 @@ class SmfManager:
|
|||||||
cursor = connections['smf'].cursor()
|
cursor = connections['smf'].cursor()
|
||||||
cursor.execute(cls.SQL_REMOVE_USER_GROUP, [groupid, userid])
|
cursor.execute(cls.SQL_REMOVE_USER_GROUP, [groupid, userid])
|
||||||
logger.info(f"Removed smf user id {userid} from group id {groupid}")
|
logger.info(f"Removed smf user id {userid} from group id {groupid}")
|
||||||
except:
|
except Exception as e:
|
||||||
logger.exception(f"Unable to remove smf user id {userid} from group id {groupid}")
|
logger.exception(f"Unable to remove smf user id {userid} from group id {groupid} ({e})")
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
Loading…
x
Reference in New Issue
Block a user