Commit 5459c8d9 authored by Marcus's avatar Marcus

add logging for created groups

parent de9168fd
......@@ -200,7 +200,11 @@ class User:
new_groups = [grp.reg_info(short=True) for grp in supplementary_groups]
new_groups += [self.primary_group]
for group in new_groups:" new group: {}")
try:" new group: {}")
except AttributeError as e:
logger.error(F"Error displaying group name: {e} for {group}")
logger.debug("Groups according to BWIDM: {}".format([g['name'] for g in current_groups]))
logger.debug("Groups according to FEUDAL: {}".format([g['name'] for g in new_groups]))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment