Skip to content

Commit bf82037

Browse files
MichaelUrayclaude
andcommitted
fix: add warning log for missing skip_push_update_on_save
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent a250197 commit bf82037

File tree

1 file changed

+6
-0
lines changed
  • openwisp_controller/config/controller

1 file changed

+6
-0
lines changed

openwisp_controller/config/controller/views.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,12 @@ def _update_device_name(self, request, device):
482482
skip = getattr(device, "skip_push_update_on_save", None)
483483
if callable(skip):
484484
skip()
485+
else:
486+
logger.warning(
487+
"Device %s does not implement skip_push_update_on_save(); "
488+
"continuing registration without push-skip optimization.",
489+
device.pk,
490+
)
485491

486492

487493
class GetVpnView(SingleObjectMixin, View):

0 commit comments

Comments
 (0)