Skip to content

misc: Show project and organization when using info log level#670

Merged
kamilogorek merged 2 commits intomasterfrom
log-org-proj
Mar 6, 2020
Merged

misc: Show project and organization when using info log level#670
kamilogorek merged 2 commits intomasterfrom
log-org-proj

Conversation

@kamilogorek
Copy link
Contributor

No description provided.

@kamilogorek kamilogorek requested a review from HazAT March 3, 2020 10:42
Copy link
Member

@HazAT HazAT left a comment

Choose a reason for hiding this comment

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

I have no idea about the codebase and I suppose there is currently no better way of doing this right?
The fact that this is duplicated several times

info!(
        "Issuing a command for Organization: {} Project: {}",
        org, project
    );

makes me sad :(

@kamilogorek
Copy link
Contributor Author

Every command has it's own execute method, and not all of them require project and organization. I didn't want to put it inside code.get_org_and_project getter, as logging shouldn't be part of getting the value itself. Maybe @jan-auer can chime in?

Copy link
Member

@untitaker untitaker left a comment

Choose a reason for hiding this comment

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

cool

@kamilogorek kamilogorek merged commit b6a5bcc into master Mar 6, 2020
@kamilogorek kamilogorek deleted the log-org-proj branch March 6, 2020 11:09
szokeasaurusrex added a commit that referenced this pull request May 6, 2025
These appear to have been originally added in #670; however, we have not adopted these info logs consistently across all of our commands, and we believe they are likely not very useful.

Since some of these commands are going to be modified to accept multiple projects, the info log would anyways need to be reworked if we were to keep it; however, it is simpler just to get rid of the log for now.
szokeasaurusrex added a commit that referenced this pull request May 6, 2025
These appear to have been originally added in #670; however, we have not adopted these info logs consistently across all of our commands, and we believe they are likely not very useful.

Since some of these commands are going to be modified to accept multiple projects, the info log would anyways need to be reworked if we were to keep it; however, it is simpler just to get rid of the log for now.
szokeasaurusrex added a commit that referenced this pull request May 7, 2025
These appear to have been originally added in #670; however, we have not
adopted these info logs consistently across all of our commands, and we
believe they are likely not very useful.

Since some of these commands are going to be modified to accept multiple
projects, the info log would anyways need to be reworked if we were to
keep it; however, it is simpler just to get rid of the log for now.
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.

3 participants