paulscherrerinstitute / StreamDevice

EPICS Driver for message based I/O
GNU General Public License v3.0
28 stars 42 forks source link

Reduce logging the same error from the same record #67

Closed DominicOram closed 3 years ago

DominicOram commented 3 years ago

As a developer at multiple facilities I would like StreamDevice to reduce the amount of repeated log messages so that they don't take up unnecessary disk space/network usage. This is particularly bad when a timeout happens due to a disconnected device but can happen in various cases.

After discussion with @dirk-zimoch and @marciodo the following psuedocode solution was proposed:

Note that this is very similar to the work done in https://github.com/paulscherrerinstitute/StreamDevice/pull/39 but with the aim to:

dirk-zimoch commented 3 years ago

Implemented in #68. Included in release 2.8.20.