Skip to content

Add missing newline to job message for TLS handshake.#1209

Merged
pstorz merged 4 commits intobareos:masterfrom
rainerjung:Log-message-missing-newline
Aug 1, 2022
Merged

Add missing newline to job message for TLS handshake.#1209
pstorz merged 4 commits intobareos:masterfrom
rainerjung:Log-message-missing-newline

Conversation

@rainerjung
Copy link
Contributor

@rainerjung rainerjung commented Jul 21, 2022

Add missing newline to job message for TLS handshake.
This PR will fix the missing new line in job log as seen like

07-Jul 23:00 bareos-dir JobId 15390:  Handshake: Immediate TLS 07-Jul 23:00 bareos-dir JobId 15391:  Handshake: Immediate TLS 07-Jul 23:00 bareos-bie JobId 15390:  Encryption: PSK-AES256-CBC-SHA TLSv1/SSLv3

instead expected result

07-Jul 23:00 bareos-bie JobId 15391:  Handshake: Immediate TLS 
07-Jul 23:00 bareos-bie JobId 15390:  Encryption: PSK-AES256-CBC-SHA TLSv1/SSLv3
  • Short description and the purpose of this PR is present above this paragraph
  • Your name is present in the AUTHORS file (optional)

If you have any questions or problems, please give a comment in the PR.

Helpful documentation and best practices

Checklist for the reviewer of the PR (will be processed by the Bareos team)

General
  • PR name is meaningful
  • Purpose of the PR is understood
  • Separate commit for this PR in the CHANGELOG.md, PR number referenced is same
  • Commit descriptions are understandable and well formatted
Source code quality
  • Source code changes are understandable
  • Variable and function names are meaningful
  • Code comments are correct (logically and spelling)
  • Required documentation changes are present and part of the PR
  • bareos-check-sources --since-merge does not report any problems
  • git status should not report modifications in the source tree after building and testing

Add missing newline to job messahe for TLS handshake. See the next case, cleartext handshake.
@bruno-at-bareos
Copy link
Contributor

Nice, maybe also time then to fix line 208 by removing the \n and adding also add_newline_in_joblog = true;

@bruno-at-bareos
Copy link
Contributor

@rainerjung are you interested to do the whole PR process? It would be nice to have also your Name in AUTHORS file.

@rainerjung
Copy link
Contributor Author

I am not sure, whether I currently can find the time to do the non-release build and test it. So if you can proceed without strong involvement from my side, that would be great. I do not really care whether you include me in the AUTHORS or not, because it is a trivial change. But if you like so, you can add "Rainer Jung". Of course, if you need to discuss something technical about the patch, I am here to answer as far as I can.
Thank you!

Always add newline to job message for TLS handshake.

Signed-off-by: Bruno Friedmann <bruno.friedmann@bareos.com>
@bruno-at-bareos bruno-at-bareos requested a review from pstorz July 28, 2022 14:43
bruno-at-bareos and others added 2 commits July 29, 2022 11:13
Copy link
Member

@pstorz pstorz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work!

@pstorz pstorz merged commit d7109f1 into bareos:master Aug 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants