Skip to content

Commit 95be634

Browse files
committed
Rename excluded 'channel' tags to 'logger'
1 parent 64c4622 commit 95be634

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [1.7.2] - 2021-04-01
8+
### Fixed
9+
- Rename excluded `channel` tags to `logger`
10+
711
## [1.7.1] - 2021-03-12
812
### Added
913
- Allow interfaces in the excluded_exceptions option

wmsentry.install

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,26 @@ function wmsentry_update_8001(): void
2222
]);
2323
$config->save();
2424
}
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+

0 commit comments

Comments
 (0)