mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 10:53:28 -05:00
Fix incorrect log message for dodgy broadcasts
This was logging the number of keys in the whole JSON blob, rather than the number of IDs specified within it.
This commit is contained in:
@@ -102,7 +102,7 @@ class BroadcastMessage(JSONModel):
|
||||
# which isn't great as our code doesn't support editing its
|
||||
# areas, but we don't expect this to happen often
|
||||
current_app.logger.warn(
|
||||
f'BroadcastMessage has {len(self._dict["areas"])} areas '
|
||||
f'BroadcastMessage has {len(self.area_ids)} area IDs '
|
||||
f'but {len(library_areas)} found in the library. Treating '
|
||||
f'{self.id} as a custom broadcast.'
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user