sentry-fastlane-plugin icon indicating copy to clipboard operation
sentry-fastlane-plugin copied to clipboard

Option to control the log output

Open mojidabckuu opened this issue 1 year ago • 6 comments

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

mojidabckuu avatar Feb 19 '24 09:02 mojidabckuu

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

fastlane [your_lane] > output.log

This should also work in CI.

philipphofmann avatar Feb 19 '24 12:02 philipphofmann

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.

mojidabckuu avatar Feb 19 '24 12:02 mojidabckuu

We set the log level to debug if you use verbose for Fastlane https://github.com/getsentry/sentry-fastlane-plugin/blob/d36767725d0b21e85d27fc15058ad04315a0e726/lib/fastlane/plugin/sentry/helper/sentry_config.rb#L57

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

philipphofmann avatar Feb 19 '24 14:02 philipphofmann

@philipphofmann Are you sure?

https://github.com/getsentry/sentry-fastlane-plugin/blob/d36767725d0b21e85d27fc15058ad04315a0e726/lib/fastlane/plugin/sentry/helper/sentry_helper.rb#L38

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

mojidabckuu avatar Feb 21 '24 12:02 mojidabckuu

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.

philipphofmann avatar Feb 22 '24 11:02 philipphofmann

@denrase can you look into this?

kahest avatar Feb 28 '24 13:02 kahest

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 🥀

github-actions[bot] avatar Mar 21 '24 00:03 github-actions[bot]