We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f287376 commit b3ecf04Copy full SHA for b3ecf04
services/activation.py
@@ -76,12 +76,24 @@ def try_auto_activate(org: Owner, owner: Owner) -> bool:
76
activator = _get_activator(org, owner)
77
78
if activator.is_autoactivation_enabled():
79
- log.info(f"Attemping to auto-activate user {owner.ownerid} in {org.ownerid}")
+ log.info(
80
+ "Attemping to auto-activate user",
81
+ extra=dict(
82
+ owner_id=owner.ownerid,
83
+ org_id=org.ownerid
84
+ ),
85
+ )
86
if activator.can_activate_user():
87
activator.activate_user()
88
return True
89
else:
- log.info("Auto-activation failed -- not enough seats remaining")
90
91
+ "Auto-activation failed -- not enough seats remaining",
92
93
94
95
96
97
return False
98
99
0 commit comments