fastlane-plugin-sentry 1.21.0 → 1.22.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 49ab1c8c8d0bed2f5667c7d429ac2214238a1358c89989a58e5d074635a7bd11
4
- data.tar.gz: ae184b3201d7abfbd76044ce77f047ffd6425eb9d83cc69a2bfa42ec6e5c2d28
3
+ metadata.gz: 7eeb79b8eac06b06f2634e82c39adb02bc98338518c7a3eef0555d32c335a179
4
+ data.tar.gz: 8a23a65251c4dc955ea2288d9e002e43431f491636dc0e8b8df5d1f1a51b9c7f
5
5
  SHA512:
6
- metadata.gz: 4fb7e2d9e0044cf5130e8d5cf7a51ecce1a3c4c2deb7d9b5f08a0909188b783c5b4aacdae2fa1c0ee7ac267e3dd5de0e31b1a473e92adce022f0ed67b0860023
7
- data.tar.gz: e1e2ee8bfc420593f7f02bcbc7683074e37af573b09f89e592dcc3e501df9efed6a8fb75fff24fd20eb2ecc52141d470ddc199d087300dc6d94d72afb619a0a0
6
+ metadata.gz: 0b8ac832d62e8bccd4466d4f6a511629cd305cc8e356ce21108a5d4964f0035eb5c9c104e18a1f6abde79b365cdf5aa59f2dcfdbaef4a74aefa4dc0ad1968ec8
7
+ data.tar.gz: 889f534c7fb20cf522cc69da572cc8e9069b21f30022448808e8598af19be5de2df51601b09edec5b0ce3cc329c19a4139ae37ef18e0c5b432f84f3792017d82
data/README.md CHANGED
@@ -208,6 +208,10 @@ Useful for checking that the sentry-cli is installed and meets the minimum versi
208
208
  sentry_check_cli_installed()
209
209
  ```
210
210
 
211
+ ### Logging
212
+
213
+ You can set the `sentry-cli` [configuration value](https://docs.sentry.io/product/cli/configuration/#configuration-values) `SENTRY_LOG_LEVEL` by adding `log_level` to any action. Supported values are 'trace', 'debug', 'info', 'warn' and 'error'.
214
+
211
215
  ## Issues and Feedback
212
216
 
213
217
  For any other issues and feedback about this plugin, please submit it to this repository.
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -35,7 +35,14 @@ module Fastlane
35
35
  FastlaneCore::ConfigItem.new(key: :project_slug,
36
36
  env_name: "SENTRY_PROJECT_SLUG",
37
37
  description: "Project slug for Sentry",
38
- optional: true)
38
+ optional: true),
39
+ FastlaneCore::ConfigItem.new(key: :log_level,
40
+ env_name: "SENTRY_LOG_LEVEL",
41
+ description: "Configures the log level used by sentry-cli",
42
+ optional: true,
43
+ verify_block: proc do |value|
44
+ UI.user_error! "Invalid log level '#{value}'" unless ['trace', 'debug', 'info', 'warn', 'error'].include? value.downcase
45
+ end)
39
46
  ] + self.common_cli_config_items
40
47
  end
41
48
 
@@ -47,6 +54,7 @@ module Fastlane
47
54
  api_key = params[:api_key]
48
55
  org = params[:org_slug]
49
56
  project = params[:project_slug]
57
+ log_level = params[:log_level]
50
58
 
51
59
  has_org = !org.to_s.empty?
52
60
  has_project = !project.to_s.empty?
@@ -54,7 +62,12 @@ module Fastlane
54
62
  has_auth_token = !auth_token.to_s.empty?
55
63
 
56
64
  ENV['SENTRY_URL'] = url unless url.to_s.empty?
57
- ENV['SENTRY_LOG_LEVEL'] = 'DEBUG' if FastlaneCore::Globals.verbose?
65
+
66
+ if log_level.to_s.empty?
67
+ ENV['SENTRY_LOG_LEVEL'] = 'debug' if FastlaneCore::Globals.verbose?
68
+ else
69
+ ENV['SENTRY_LOG_LEVEL'] = log_level
70
+ end
58
71
 
59
72
  # Fallback to .sentryclirc if possible when no auth token is provided
60
73
  if !has_api_key && !has_auth_token && fallback_sentry_cli_auth(params)
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Sentry
3
- VERSION = "1.21.0"
3
+ VERSION = "1.22.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-sentry
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.21.0
4
+ version: 1.22.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sentry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-27 00:00:00.000000000 Z
11
+ date: 2024-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: os