Skip to content
This repository was archived by the owner on Sep 6, 2023. It is now read-only.

Commit 7120f94

Browse files
committed
Update NoticeDebugger.php - reset filter invoke in raw notice method instead of each debug method
1 parent dc487ce commit 7120f94

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

ggrachdev.debugbar/classes/general/BitrixDebugger/Debugger/NoticeDebugger.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,25 +25,21 @@ public function name(string $name) {
2525

2626
public function notice(...$item) {
2727
$this->noticeRaw('notice', $item);
28-
$this->resetFilter();
2928
return $this;
3029
}
3130

3231
public function error(...$item) {
3332
$this->noticeRaw('error', $item);
34-
$this->resetFilter();
3533
return $this;
3634
}
3735

3836
public function warning(...$item) {
3937
$this->noticeRaw('warning', $item);
40-
$this->resetFilter();
4138
return $this;
4239
}
4340

4441
public function success(...$item) {
4542
$this->noticeRaw('success', $item);
46-
$this->resetFilter();
4743
return $this;
4844
}
4945

@@ -138,7 +134,6 @@ public function getLog(bool $needAddSystemData = false): array {
138134
*/
139135
public function debug(string $typeNotice, ...$item) {
140136
$this->noticeRaw($typeNotice, $item);
141-
$this->resetFilter();
142137
return $this;
143138
}
144139

@@ -175,6 +170,7 @@ public function noticeRaw(string $type, array $arLogItems) {
175170

176171
// Сбрасываем имя
177172
$this->nameDebug = null;
173+
$this->resetFilter();
178174

179175
return $this;
180176
}

0 commit comments

Comments
 (0)