Skip to content

Add a builder for logrus and manage flag manually#328

Merged
Nexucis merged 1 commit intomainfrom
nexucis/flag
Mar 6, 2026
Merged

Add a builder for logrus and manage flag manually#328
Nexucis merged 1 commit intomainfrom
nexucis/flag

Conversation

@Nexucis
Copy link
Member

@Nexucis Nexucis commented Mar 6, 2026

This PR is changing the way to manage the flag.

Before the flags were set in the init function. The issue was, even if you didn't use these flags, there were initialised anyway. So now these flags needs to be initialised manually by calling the function InitFlag present in different packages.

I have also taken the liberty to create a new builder to configure logrus. I believe it will be a bit more flexible like that.

Signed-off-by: Augustin Husson <husson.augustin@gmail.com>
@Nexucis
Copy link
Member Author

Nexucis commented Mar 6, 2026

/cc @ibakshay with this PR, we should be able to avoid the unnecessary flags in the MCP server

Copy link

@ibakshay ibakshay left a comment

Choose a reason for hiding this comment

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

LGTM!

@Nexucis Nexucis merged commit 648fd94 into main Mar 6, 2026
6 checks passed
@Nexucis Nexucis deleted the nexucis/flag branch March 6, 2026 14:53
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.

2 participants