File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 5
5
- Update phpdoc on facade for better IDE autocompletion (#504 )
6
6
- Exceptions captured using log channels (Monolog) will now have the correct severity set (#505 )
7
7
- Tags passed through log channels (Monolog) context are cast as string to prevent type errors (#507 )
8
+ - Add options to the ` artisan sentry:publish ` command to better support ` --no-interaction ` mode (#509 )
8
9
9
10
## 2.7.0
10
11
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ class PublishConfigCommand extends Command
19
19
*
20
20
* @var string
21
21
*/
22
- protected $ signature = 'sentry:publish {--dsn=} ' ;
22
+ protected $ signature = 'sentry:publish {--dsn=} {--without-performance-monitoring} {--without-test} ' ;
23
23
24
24
/**
25
25
* The console command description.
@@ -65,7 +65,7 @@ public function handle()
65
65
$ args = array_merge ($ args , ['--dsn ' => $ dsn ]);
66
66
}
67
67
68
- if ($ this ->confirm ('Enable Performance Monitoring? ' , true )) {
68
+ if ($ this ->confirm ('Enable Performance Monitoring? ' , ! $ this -> option ( ' without-performance-monitoring ' ) )) {
69
69
$ this ->setEnvironmentValue (['SENTRY_TRACES_SAMPLE_RATE ' => 1.0 ]);
70
70
71
71
$ this ->info ('[Sentry] Added `SENTRY_TRACES_SAMPLE_RATE=1` to your .env file. ' );
@@ -76,7 +76,7 @@ public function handle()
76
76
$ testCommandPrompt = 'Want to send a test Event? ' ;
77
77
}
78
78
79
- if ($ this ->confirm ($ testCommandPrompt , true )) {
79
+ if ($ this ->confirm ($ testCommandPrompt , ! $ this -> option ( ' without-test ' ) )) {
80
80
$ this ->call ('sentry:test ' , $ args );
81
81
}
82
82
}
You can’t perform that action at this time.
0 commit comments