log-cache-release icon indicating copy to clipboard operation
log-cache-release copied to clipboard

Make whitespace trimming in log messages optional

Open chombium opened this issue 1 year ago • 0 comments

Description

The Log Cache Syslog server trims leading and trailing whitespace in the messages. The log messages should be not changed.

This change:

  • adds config parameter to define if the whitespace in the log messages should be trimmed or not
  • trims or leaves the log message untouched based on the config parameter

The default behavior is to trim the log messages, so that it is compatible with the behavior up until now.

Fixes #505

Type of change

  • [X] Bug fix (non-breaking change which fixes an issue)
  • [ ] New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • [ ] This change requires a documentation update

Testing performed?

  • [X] Unit tests
  • [X] Integration tests
  • [ ] Acceptance tests

Checklist:

  • [X] This PR is being made against the main branch, or relevant version branch
  • [ ] I have made corresponding changes to the documentation
  • [X] I have added testing for my changes

chombium avatar May 13 '24 15:05 chombium