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

Remove log:get number default #79

Merged
merged 1 commit into from
Mar 21, 2023
Merged

Remove log:get number default #79

merged 1 commit into from
Mar 21, 2023

Conversation

iowillhoit
Copy link
Contributor

What does this PR do?

Removes (and ignores) the default for the get log --number integer. When the default is present it takes priority over the logId in the apex library here: https://github.com/forcedotcom/salesforcedx-apex/blob/main/src/logs/logService.ts#L57-L60

With this removed, you still get an appropriate message when you do not pass either flag:
Error (1): To retrieve logs, specify the log ID or the number of logs.

Not knowing how the apex library is being used, I feel it is safer to make the change here.

What issues does this PR fix or reference?

forcedotcom/cli#2006
@W-12726884@

@iowillhoit iowillhoit requested a review from a team as a code owner March 21, 2023 18:20
@iowillhoit iowillhoit merged commit 7838d87 into main Mar 21, 2023
@iowillhoit iowillhoit deleted the ew/log-number-default branch March 21, 2023 19:13
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