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

Option to control the log output #244

Closed
mojidabckuu opened this issue Feb 19, 2024 · 7 comments · Fixed by #253
Closed

Option to control the log output #244

mojidabckuu opened this issue Feb 19, 2024 · 7 comments · Fixed by #253

Comments

@mojidabckuu
Copy link

mojidabckuu commented Feb 19, 2024

Currently there is a huge logging during the upload.
Is there a way to omit it or to stream into a file?

@philipphofmann
Copy link
Member

When you call Fastlane from the command line, you can do something like

fastlane [your_lane] > output.log

This should also work in CI.

@mojidabckuu
Copy link
Author

Thank you @philipphofmann

Unfortunately it is not my case because sentry action is the part of other lane. Stream > operator whole lane hides the output that we want to see in the web console.

Is there a plan what could be done to Helper during the cli call? May be pass a param to control the output.

@philipphofmann
Copy link
Member

We set the log level to debug if you use verbose for Fastlane

ENV['SENTRY_LOG_LEVEL'] = 'DEBUG' if FastlaneCore::Globals.verbose?

I think we should add a parameter for the log level common_api_config_items, so you can configure it.

@mojidabckuu
Copy link
Author

@philipphofmann Are you sure?

Looking in this code it prints everything using UI which under the hood calls regular STDOUT flushing

@philipphofmann
Copy link
Member

The helper should take the output from sentry-cli and forwards it to UI. The environment variable SENTRY_LOG_LEVEL is used by sentry-cli. If I'm not mistaken, we need to add an option the config, so you can simply configure it via Fastlane.

@kahest
Copy link
Member

kahest commented Feb 28, 2024

@denrase can you look into this?

Copy link
Contributor

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Backlog or Status: In Progress, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

5 participants
@mojidabckuu @kahest @philipphofmann @denrase and others