Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make logs friendlier when agent fails to connect to the manager #273

Merged
merged 6 commits into from
Nov 6, 2024

Conversation

aritosteles
Copy link
Contributor

Related issue
255

Description

Make output more friendly when the agent fails to connect to the manager

Tests

  • Compilation without warnings in every supported platform
    • Linux
    • Windows
    • MAC OS X

@aritosteles aritosteles linked an issue Nov 4, 2024 that may be closed by this pull request
@aritosteles aritosteles force-pushed the feat/255-friendly-logs branch 2 times, most recently from 65ea228 to edc5ddd Compare November 4, 2024 20:43
@aritosteles aritosteles marked this pull request as ready for review November 4, 2024 20:44
@aritosteles aritosteles force-pushed the feat/255-friendly-logs branch from 33a5ce4 to 60c01d4 Compare November 5, 2024 12:46
@aritosteles aritosteles changed the title Feat/255 friendly logs Make logs friendlier when agent fails to connect to the manager Nov 5, 2024
Copy link
Member

@vikman90 vikman90 left a comment

Choose a reason for hiding this comment

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

We should add an option to set the connection retry interval, just like the 4.x agent.

@aritosteles aritosteles force-pushed the feat/255-friendly-logs branch 3 times, most recently from 5cce693 to 7fca9e4 Compare November 5, 2024 16:22
@aritosteles aritosteles force-pushed the feat/255-friendly-logs branch 3 times, most recently from 98a8e2d to c63c2c3 Compare November 5, 2024 21:17
@aritosteles aritosteles requested a review from vikman90 November 5, 2024 22:15
Copy link
Member

@jr0me jr0me left a comment

Choose a reason for hiding this comment

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

LGTM

vikman90 and others added 6 commits November 6, 2024 09:33
We can override the logger level through environment variable
SPDLOG_LEVEL.
These constants should be made configurable settings further ahead.
Adds doxygen style documentation to header file.
@aritosteles aritosteles force-pushed the feat/255-friendly-logs branch from c63c2c3 to 078eee9 Compare November 6, 2024 12:33
@TomasTurina TomasTurina merged commit d7642c7 into master Nov 6, 2024
5 checks passed
@TomasTurina TomasTurina deleted the feat/255-friendly-logs branch November 6, 2024 13:35
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.

Friendly log connection attempts
5 participants