mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-12 22:10:16 +02:00
Finished auditing service manager logging.
This commit is contained in:
parent
8b2b253c58
commit
cd44f00881
@ -79,7 +79,7 @@ class Phpbb3Manager:
|
|||||||
logger.debug("Got phpbb user id %s for username %s" % (row[0], username))
|
logger.debug("Got phpbb user id %s for username %s" % (row[0], username))
|
||||||
return row[0]
|
return row[0]
|
||||||
else:
|
else:
|
||||||
logger.warn("Username %s not found on phpbb." % username)
|
logger.warn("Username %s not found on phpbb. Unable to determine user id." % username)
|
||||||
return None
|
return None
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
@ -119,7 +119,7 @@ class Phpbb3Manager:
|
|||||||
try:
|
try:
|
||||||
cursor = connections['phpbb3'].cursor()
|
cursor = connections['phpbb3'].cursor()
|
||||||
cursor.execute(Phpbb3Manager.SQL_ADD_USER_GROUP, [groupid, userid, 0])
|
cursor.execute(Phpbb3Manager.SQL_ADD_USER_GROUP, [groupid, userid, 0])
|
||||||
logger.info("Added phpbb user id to group id %s" % (userid, groupid))
|
logger.info("Added phpbb user id %s to group id %s" % (userid, groupid))
|
||||||
except:
|
except:
|
||||||
logger.exception("Unable to add phpbb user id %s to group id %s" % (userid, groupid), exc_info=True)
|
logger.exception("Unable to add phpbb user id %s to group id %s" % (userid, groupid), exc_info=True)
|
||||||
pass
|
pass
|
||||||
@ -262,5 +262,5 @@ class Phpbb3Manager:
|
|||||||
cursor.execute(Phpbb3Manager.SQL_DIS_USER, [email, password, username])
|
cursor.execute(Phpbb3Manager.SQL_DIS_USER, [email, password, username])
|
||||||
logger.info("Updated phpbb user %s info" % username)
|
logger.info("Updated phpbb user %s info" % username)
|
||||||
except:
|
except:
|
||||||
logger.exception("Unable to update phpbb user %s info." % username, exc_info=True
|
logger.exception("Unable to update phpbb user %s info." % username, exc_info=True)
|
||||||
pass
|
pass
|
||||||
|
@ -110,7 +110,6 @@ class Teamspeak3Manager:
|
|||||||
outlist[group['keys']['name']] = group['keys']['sgid']
|
outlist[group['keys']['name']] = group['keys']['sgid']
|
||||||
else:
|
else:
|
||||||
logger.error("Received empty group cache while retrieving group cache from TS3 server. 1024 error.", exc_info=True)
|
logger.error("Received empty group cache while retrieving group cache from TS3 server. 1024 error.", exc_info=True)
|
||||||
print '1024 error'
|
|
||||||
logger.debug("Returning name/id pairing: %s" % outlist)
|
logger.debug("Returning name/id pairing: %s" % outlist)
|
||||||
return outlist
|
return outlist
|
||||||
|
|
||||||
@ -280,7 +279,7 @@ class Teamspeak3Manager:
|
|||||||
if user_ts_groups[user_ts_group_key] not in ts_groups.values():
|
if user_ts_groups[user_ts_group_key] not in ts_groups.values():
|
||||||
remgroups.append(user_ts_groups[user_ts_group_key])
|
remgroups.append(user_ts_groups[user_ts_group_key])
|
||||||
|
|
||||||
logger.info("Finished checking user id %s groups. Adding %s, removing %s." % (uid, addgroups, remgroups))
|
logger.info("Finished checking user id %s groups. Adding %s, removing %s." % (userid, addgroups, remgroups))
|
||||||
|
|
||||||
for g in addgroups:
|
for g in addgroups:
|
||||||
logger.debug("Issuing add command for group %s" % g)
|
logger.debug("Issuing add command for group %s" % g)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user