Skip to content

Commit 3b1f9c2

Browse files
committed
chore(config): update exception-notify configuration
- Updated 'channel' value to null in the 'log' section - Increased limit length to 4096 in 'pipes' section for certain cases
1 parent 9b0df2c commit 3b1f9c2

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

config/exception-notify.php

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
*/
9292
'log' => [
9393
'driver' => 'log',
94-
'channel' => 'daily',
94+
'channel' => null,
9595
],
9696

9797
/**
@@ -100,7 +100,11 @@
100100
'mail' => [
101101
'driver' => 'mail',
102102
'mailer' => null,
103-
'to' => ['users' => env('EXCEPTION_NOTIFY_MAIL_TO', '[email protected]')],
103+
'to' => [
104+
'users' => env_explode('EXCEPTION_NOTIFY_MAIL_TO', [
105+
106+
]),
107+
],
104108
'pipes' => [
105109
SprintfHtmlPipe::class,
106110
],
@@ -148,7 +152,7 @@
148152
'body' => '{report}',
149153
],
150154
'pipes' => [
151-
hydrate_pipe(LimitLengthPipe::class, 1024),
155+
hydrate_pipe(LimitLengthPipe::class, 4096),
152156
],
153157
],
154158

@@ -192,6 +196,7 @@
192196
],
193197
'pipes' => [
194198
hydrate_pipe(AddKeywordPipe::class, env('EXCEPTION_NOTIFY_DINGTALK_KEYWORD')),
199+
SprintfMarkdownPipe::class,
195200
hydrate_pipe(LimitLengthPipe::class, 20000),
196201
],
197202
],
@@ -258,7 +263,7 @@
258263
'message' => '{report}',
259264
],
260265
'pipes' => [
261-
hydrate_pipe(LimitLengthPipe::class, 1024),
266+
hydrate_pipe(LimitLengthPipe::class, 4096),
262267
],
263268
],
264269

@@ -281,7 +286,7 @@
281286
],
282287
'pipes' => [
283288
SprintfMarkdownPipe::class,
284-
hydrate_pipe(LimitLengthPipe::class, 2048),
289+
// hydrate_pipe(LimitLengthPipe::class, 4096),
285290
],
286291
],
287292

@@ -298,11 +303,12 @@
298303
],
299304
'message' => [
300305
'class' => \Guanguans\Notify\Slack\Messages\Message::class,
306+
'mrkdwn' => true,
301307
'text' => '{report}',
302308
],
303309
'pipes' => [
304310
SprintfMarkdownPipe::class,
305-
hydrate_pipe(LimitLengthPipe::class, 4096),
311+
// hydrate_pipe(LimitLengthPipe::class, 10240),
306312
],
307313
],
308314

@@ -344,7 +350,7 @@
344350
],
345351
'pipes' => [
346352
SprintfMarkdownPipe::class,
347-
hydrate_pipe(LimitLengthPipe::class, 5120),
353+
hydrate_pipe(LimitLengthPipe::class, 4096),
348354
],
349355
],
350356
],

src/Channels/LogChannel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class LogChannel extends Channel
1919
{
2020
public function report(string $report): void
2121
{
22-
Log::channel($this->config->get('channel', 'daily'))->log(
22+
Log::channel($this->config->get('channel'))->log(
2323
$this->config->get('level', 'error'),
2424
$report,
2525
$this->config->get('context', []),

0 commit comments

Comments
 (0)