i4Ds / Karabo-Pipeline

The Karabo Pipeline can be used as Digital Twin for SKA
https://i4ds.github.io/Karabo-Pipeline/
MIT License
11 stars 4 forks source link

added CaptureSpam to KaraboResource #460

Closed Lukas113 closed 1 year ago

Lukas113 commented 1 year ago

Added CaptureSpam to karabo_resource.py to be able to capture third-party library spam-messages.

Should be good enough. I tested it with all print-options (not logging). The only drawback is, that it can only check for each new-line if it has already been printed. So if e.g. a third-party library wraps their output in something like "--------------------\n" multiple times, it gets captured after the first time. It's also not able to capture with regex, just exact-match. But for the second case, CaptureSpam could be extended to support capturing by regex (I think).

github-actions[bot] commented 1 year ago

Unit Test Results

0 tests  ±0   0 :heavy_check_mark: ±0   0s :stopwatch: ±0s 0 suites ±0   0 :zzz: ±0  0 files   ±0   0 :x: ±0 

Results for commit 5623ad6d. ± Comparison against base commit de9034b3.

:recycle: This comment has been updated with latest results.