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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix start command detection for spdlog #1530

Merged
merged 1 commit into from Apr 7, 2021

Conversation

dominiklohmann
Copy link
Member

馃摂 Description

When configuring spdlog we do different things for client and server. We distinguish between the two by checking whether the current subcommand we're running is start.

However, this returned a false positive for a plugin that had a command <plugin> start. This commit changes to checking whether the full name of the command we're running is start.

馃摑 Checklist

  • All user-facing changes have changelog entries.
  • The changes are reflected on docs.tenzir.com/vast, if necessary.
  • The PR description contains instructions for the reviewer, if necessary.

馃幆 Review Instructions

n/t

@dominiklohmann dominiklohmann added the bug Incorrect behavior label Apr 7, 2021
@dominiklohmann dominiklohmann requested a review from a team April 7, 2021 07:55
Copy link
Member

@tobim tobim left a comment

Choose a reason for hiding this comment

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

My understanding of invocation allows me to confirm that this change is correct without testing it locally.

Copy link
Member

@lava lava left a comment

Choose a reason for hiding this comment

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

Looks good, I didn't test it myself but I assume you have already checked that the full_name is just start and not vast start in the server case?

When configuring spdlog we do different things for client and server. We
distinguish between the two by checking whether the current subcommand
we're running is `start`.

However, this returned a false positive for a plugin that had a command
`<plugin> start`. This commit changes to checking whether the full name
of the command we're running is `start`.
@dominiklohmann
Copy link
Member Author

I assume you have already checked that the full_name is just start and not vast start in the server case?

Yes. I verified that vast start still writes to the vast.db/server.log file.

@dominiklohmann dominiklohmann merged commit 89c00ab into master Apr 7, 2021
@dominiklohmann dominiklohmann deleted the topic/fix-spdlog-setup branch April 7, 2021 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Incorrect behavior
Projects
None yet
3 participants