Skip to content

bsmtp: make mailhost and port message info a debug message#1507

Merged
BareosBot merged 2 commits intobareos:masterfrom
alaaeddineelamri:dev/alaaeddineelamri/master/bsmtp-info-message
Jul 12, 2023
Merged

bsmtp: make mailhost and port message info a debug message#1507
BareosBot merged 2 commits intobareos:masterfrom
alaaeddineelamri:dev/alaaeddineelamri/master/bsmtp-info-message

Conversation

@alaaeddineelamri
Copy link
Contributor

@alaaeddineelamri alaaeddineelamri commented Jul 11, 2023

Description

When extracting the mailhost and port, bsmtp would show an info message that later would be interpreted as an error. This PR transforms it into a debug message.

Please check

  • 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)

Make sure you check/merge the PR using devtools/pr-tool to have some simple automated checks run and a proper changelog record added.

General
  • Is the PR title usable as CHANGELOG entry?
  • Purpose of the PR is understood
  • Commit descriptions are understandable and well formatted
  • Required backport PRs have been created
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

Copy link
Contributor

@bruno-at-bareos bruno-at-bareos left a comment

Choose a reason for hiding this comment

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

Maybe the variable name can be adjusted.


int mailport = default_port;
std::string mailhost = default_mailhost;
std::string mail_and_port_source = "Mailhost and mailport set to default";
Copy link
Contributor

Choose a reason for hiding this comment

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

What about host_and_port_source as variable name? I found it a bit less confusing.

@alaaeddineelamri alaaeddineelamri force-pushed the dev/alaaeddineelamri/master/bsmtp-info-message branch from 02694df to 3321ce8 Compare July 12, 2023 09:03
Copy link
Contributor

@bruno-at-bareos bruno-at-bareos left a comment

Choose a reason for hiding this comment

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

Good Works. Ready for merge and backports

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants