Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add voucher events #658

Merged
merged 1 commit into from
May 6, 2024
Merged

Add voucher events #658

merged 1 commit into from
May 6, 2024

Conversation

ufozone
Copy link
Contributor

@ufozone ufozone commented May 5, 2024

In my production system I get the following warnings in the log when I use my voucher integration:

2024-05-05 21:14:26.557 WARNING (MainThread) [aiounifi.models.event] Unsupported event key EVT_AD_VoucherCreated
2024-05-05 21:14:26.557 WARNING (MainThread) [aiounifi.models.event] Unsupported event {'num': '1', 'use': 'single-use', 'admin': 'Admin[Admin  ]', 'site_id': '5a32aa4ee4b0412345678910', 'is_admin': True, 'key': 'EVT_AD_VoucherCreated', 'subsystem': 'wlan', 'is_negative': False, 'time': 1714936463552, 'datetime': '2024-05-05T19:14:23Z', 'msg': 'Admin[Admin  ] created 1 single-use voucher(s)', '_id': '6637da8ff30c710b60b18251'}
2024-05-05 21:16:11.559 WARNING (MainThread) [aiounifi.models.event] Unsupported event key EVT_AD_VoucherDeleted
2024-05-05 21:16:11.560 WARNING (MainThread) [aiounifi.models.event] Unsupported event {'code': '9668964319', 'admin': 'Admin[Admin  ]', 'site_id': '5a32aa4ee4b0412345678910', 'is_admin': True, 'key': 'EVT_AD_VoucherDeleted', 'subsystem': 'wlan', 'is_negative': False, 'time': 1714936570825, 'datetime': '2024-05-05T19:16:10Z', 'msg': 'Voucher[9668964319] was deleted', '_id': '6637dafaf30c710b60b182b6'}

I can't reproduce it on a dev system, so I can't really debug it.

But I hope that the warnings will disappear as a result of the changes made. What do you say, @Kane610 ?

Copy link
Owner

@Kane610 Kane610 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, yes that should fix those logs

@Kane610 Kane610 merged commit bb203fc into Kane610:master May 6, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants