Skip to content

Add a CLI argument to show/hide meta logs in call command#75

Open
tafel wants to merge 1 commit intomoleculerjs:masterfrom
tafel:master
Open

Add a CLI argument to show/hide meta logs in call command#75
tafel wants to merge 1 commit intomoleculerjs:masterfrom
tafel:master

Conversation

@tafel
Copy link

@tafel tafel commented Jan 14, 2026

Sometimes, action's meta object can carry sensible data (like application JWT with long-term validty).

The logging system in call command prints always params and meta information.

This PR adds an argument to call command so it's possible to activate logging without printing meta object.

Simple usage :

moleculer call --level info --logmeta false "service.action" --@param some-value --#token some-hidden-token

To avoid breaking changes, the default value is true so current behaviour stays the same.

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.

1 participant