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

fix the collector fail to start issue after updated the new config deps #450

Merged
merged 1 commit into from
Apr 17, 2021

Conversation

mxiamxia
Copy link
Member

Description:
Fix the new config interface error and taken care of windows exit code(0) issue

Copy link
Member

@pingleig pingleig left a comment

Choose a reason for hiding this comment

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

Can you remove the config.TryConfig as well (and its usage in config factory test).

@mxiamxia mxiamxia changed the title fix the fatal errors when reading config file fix the collector fail to start issue after updated the new config deps Apr 17, 2021
@codecov-commenter
Copy link

codecov-commenter commented Apr 17, 2021

Codecov Report

Merging #450 (885ebe9) into main (989b35a) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #450   +/-   ##
=======================================
  Coverage   82.72%   82.72%           
=======================================
  Files           6        6           
  Lines         110      110           
=======================================
  Hits           91       91           
  Misses         10       10           
  Partials        9        9           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 989b35a...885ebe9. Read the comment docs.

@@ -45,3 +47,11 @@ func runService(params service.Parameters) error {

return nil
}

// Has to set exit code 0 for the fatal errors when run the collector as service in Windows
Copy link
Member

Choose a reason for hiding this comment

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

This is a new level of hack 😅 for #340

Copy link
Member Author

Choose a reason for hiding this comment

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

any better idea? I think it seems better than previous one :)

Copy link
Member

@pingleig pingleig Apr 17, 2021

Choose a reason for hiding this comment

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

yeah, it's better than previous one from me (which didn't even work ...

Copy link
Contributor

@vastin vastin left a comment

Choose a reason for hiding this comment

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

LGTM

@mxiamxia
Copy link
Member Author

Can you remove the config.TryConfig as well (and its usage in config factory test).

done, thx

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.

None yet

4 participants