Skip to content

Catch warnings and print to console

Jonathan Howard requested to merge catch-warnings into dev

Checklist

  • documentation is changed or added in ./docs
  • unit tests updated to test changes

Description

Context

Warnings (such as use of experimental plugins) are currently printed above the rich live display while running hopctl.

Intent

Replace the warnings.showwarning function (as prescribed in the docs) with a callable that catches the warning and forwards it to the HopprLayout.print method.

Merge request reports