Skip to content

Improve analysis logging

Compare
Choose a tag to compare
@github-actions github-actions released this 22 Mar 21:04
55eadcc

Summary

This PR refines the approach taken to adding metadata about an analysis to log messages emitted during its processing. It fixes an issue where developers couldn't test their apps based on the log messages emitted during an analysis run.

Contents (#578)

New features

  • Enable Octue log handler by default

Enhancements

  • Avoid using deprecated datafile property in runner
  • Add default Octue service Dockerfile that uses python3.10

Fixes

  • Swap out formatters instead of handlers during analyses
  • Only use Octue formatter in analysis if envvar present

Refactoring

  • Rename AnalysisLogHandlerSwitcher to AnalysisLogFormatterSwitcher
  • Move run_logged_subprocess to octue.utils.processes

Testing

  • Add tests for AnalysisLogFormatterSwitcher