File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
4
4
The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
5
5
and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
6
6
7
+ ## [ 1.7.2] - 2021-04-01
8
+ ### Fixed
9
+ - Rename excluded ` channel ` tags to ` logger `
10
+
7
11
## [ 1.7.1] - 2021-03-12
8
12
### Added
9
13
- Allow interfaces in the excluded_exceptions option
Original file line number Diff line number Diff line change @@ -22,3 +22,26 @@ function wmsentry_update_8001(): void
22
22
]);
23
23
$config->save();
24
24
}
25
+
26
+ /**
27
+ * Rename excluded 'channel' tags to 'logger'
28
+ */
29
+ function wmsentry_update_8002(): void
30
+ {
31
+ $config = \Drupal::configFactory()
32
+ ->getEditable('wmsentry.settings');
33
+
34
+ if (!$excludedTags = $config->get('excluded_tags')) {
35
+ return;
36
+ }
37
+
38
+ foreach ($excludedTags as &$excludedTag) {
39
+ if ($excludedTag['tag'] === 'channel') {
40
+ $excludedTag['tag'] = 'logger';
41
+ }
42
+ }
43
+
44
+ $config->set('excluded_tags', $excludedTags);
45
+ $config->save();
46
+ }
47
+
You can’t perform that action at this time.
0 commit comments