Argus icon indicating copy to clipboard operation
Argus copied to clipboard

Some log-lines are duplicated

Open hmpf opened this issue 3 years ago • 0 comments

When testing a new frontend-feature I noticed that log-lines in the bacǩend are printed twice.

2023-02-07 08:04:27,696 argus.notificationprofile.media INFO Notification: no listeners for "'Acknowledge': AP_DISCONNECTED AP07 at Sikt Oslo, [email protected] @ 2023-02-07T08:04:27.152000+01:00" 2023-02-07 08:04:27,696 argus.notificationprofile.media INFO Notification: no listeners for "'Acknowledge': AP_DISCONNECTED AP07 at Sikt Oslo, [email protected] @ 2023-02-07T08:04:27.152000+01:00"

It is only code in argus.notificationprofile.media that does this. There could be a bug in the logging-setup, or it could be due to how we use multi-processing, but the worst case is that the code is run twice, because that means two notifications per event.

It might go away when we have a queue, but will need to check if it still is a problem at that point.

hmpf avatar Feb 07 '23 07:02 hmpf