Made groups caching log only visible on debug
This commit is contained in:
parent
717d636497
commit
bdc775dcbd
@ -24,6 +24,7 @@ if configGet("enabled", "scheduler", "cache_members"):
|
||||
list_of_users.append(member.user.id)
|
||||
makedirs(configGet("cache", "locations"), exist_ok=True)
|
||||
jsonSave(list_of_users, path.join(configGet("cache", "locations"), "group_members"))
|
||||
if configGet("debug") is True:
|
||||
logWrite("User group caching performed", debug=True)
|
||||
|
||||
if configGet("enabled", "scheduler", "cache_admins"):
|
||||
@ -34,6 +35,7 @@ if configGet("enabled", "scheduler", "cache_admins"):
|
||||
list_of_users.append(member.user.id)
|
||||
makedirs(configGet("cache", "locations"), exist_ok=True)
|
||||
jsonSave(list_of_users, path.join(configGet("cache", "locations"), "admins"))
|
||||
if configGet("debug") is True:
|
||||
logWrite("Admin group caching performed", debug=True)
|
||||
|
||||
# Cache the avatars of group members
|
||||
|
Reference in New Issue
Block a user