fastlane-plugin-sentry 1.20.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: 334d29502fcbaeb00e45401227f35de26f2d8b6528eeb3260d5c6307a9ba40eb
4
- data.tar.gz: 2d03a552921f1d78e2a0d690e2631c68bf9ec3da8d5f84270d2d96c5c08ffeb7
3
+ metadata.gz: 7eeb79b8eac06b06f2634e82c39adb02bc98338518c7a3eef0555d32c335a179
4
+ data.tar.gz: 8a23a65251c4dc955ea2288d9e002e43431f491636dc0e8b8df5d1f1a51b9c7f
5
5
  SHA512:
6
- metadata.gz: 4c12ec35b3647964dda2b7b9b64bcf4c6a23a4b0996711a39dd6e579c157846d453251c5b00ea69f4d0979e40e50c071ed9f65a8d8cf7d35587a8f9e342ff71a
7
- data.tar.gz: f50416d5b3a4d36acbc95748bd9dd4900d00fb427633cb15657efb6d7ac8a6daaff6fe8f356eeaf6cf777128c95a7af141510e562a209a07d01e215b897511e2
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.20.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.20.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-05 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