Uh oh!
There was an error while loading. Please reload this page.
[stable26] emit an event when a message is logged - #38815
Conversation
ChristophWurst
commented
Jun 15, 2023
This is a backport of a new API. Is this really necessary or could there be a workaround? |
ChristophWurst
commented
Jun 15, 2023
It's for nextcloud/logreader#873 so I would say this should not be backported. |
blizzz
commented
Jun 15, 2023
right, and since annotations also would need to be adjusted if we have a reason to backport, missed them. |
| /** | ||
| * Even for when a log item is being logged | ||
| * | ||
| * @since 28.0.0 |
There was a problem hiding this comment.
change @SInCE annotations to specific 26.0.x target version.
blizzz
commented
Jun 15, 2023
moving to 26.0.4 then |
c802e50 to
decbd93Compareicewind1991
commented
Jun 15, 2023
updated the sinces, included #38843 reasoning behind the backport is making nextcloud/logreader#873 available for debugging earlier as it could be very usefull during support |
blizzz
commented
Jul 11, 2023
needs another reviewer |
blizzz
commented
Jul 13, 2023
moving to 26.0.5 |
come-nc
commented
Jul 17, 2023
Wait, why is this updating 3rdparty? |
blizzz
commented
Jul 17, 2023
@icewind1991 accidental? |
blizzz
commented
Aug 3, 2023
moving to 26.0.6 |
blizzz
commented
Sep 7, 2023
moving to 26.0.7 |
decbd93 to
fde250fCompareSigned-off-by: Robin Appelman <robin@icewind.nl>
fde250f to
c1452aaCompareicewind1991
commented
Sep 18, 2023
fixed the accidental 3rdparty change |
| // inject the event dispatcher into the logger | ||
| // this is done here because there is a cyclic dependency between the event dispatcher and logger | ||
| if ($this->logger instanceof Log or $this->logger instanceof Log\PsrLoggerAdapter) { |
There was a problem hiding this comment.
| if ($this->loggerinstanceof Log or$this->loggerinstanceofLog\PsrLoggerAdapter) { | |
| if ($this->loggerinstanceof Log ||$this->loggerinstanceofLog\PsrLoggerAdapter) { |
This is a backport so it should be left as-is, but we usually use ||/&& and not or/and
icewind1991
commented
Sep 19, 2023
@blizzz can you re-review? |
| private $message; | ||
| /** | ||
| * @since 28.0.0 |
There was a problem hiding this comment.
all @since annotations should reflect the target version of the backport
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * @return string | ||
| * @since 26.0.8 | ||
| */ | ||
| public function getMessage(): string { |
Backport of #38490