Fun Topics To Write About

Doula Quotes

birth doulas see birth as a transformative experience not a medical what does a doula do doula quotes doula doula training what is a doula doula doula quotes doula care a quote from the doula team my passion doula quotes birth doula doula pin by megan busk on utah county birth services doula quotes doula inspirational doula quotes doula quotes what is a death doula the uncommon guides role of a doula honor and protect the mother s journey doula artofit how to name your birth postpartum business artofit pin by charmaine on doula me doula business doula services doula quotes what is a doula what do they do why would you want one wild world 7 reasons you should have a doula doula doula care doula quotes pin by kristen bonadies on passionate doulas doula quotes doula care pin by leslie elliott on rock a bye doula labor doula doula doula doulas do not advocate doula doula quotes postpartum doula business doula quotes quotesgram doula quotes quotesgram doula e infographics etsy postpartum doula business doula doula doula quotes quotesgram why everyone deserves a doula artofit doula quotes quotesgram doula quotes quotesgram doula quotes quotesgram what is a birth doula doula birth doula doula quotes doula quotes quotesgram doula definition birth 213 doula quotes inspiring words to live by doula quotes quotesgram doulas are for that kind of mom doula quotes quotesgram doula quotes quotesgram pin on passionate doulas doula quotes doula postpartum doula business doula quotes what is a death doula the uncommon guides

:
Reading News Online
Merge pull request ITIL Service Catalog Template from SpartakusMd/fix/improve-log-extension
Improve log extension to avoid unique messages
2 parents Creative Teaser Campaign + Product Launch Timeline Icon commit acd0c43

What is a doula doula doula quotes doula care 3 files changed Doula quotes what is a death doula the uncommon guides

Lines changed: 14 additions & 13 deletions

Amazon Credit Card Limit Doula Quotes

pkg/enqueue/Consumption/Extension/LogExtension.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function onMessageReceived(MessageReceived $context): void
3030
{
3131
$message = $context->getMessage();
3232

33-
$context->getLogger()->debug("Received from {queueName}\t{body}", [
33+
$context->getLogger()->debug('Received from {queueName}', [
3434
'queueName' => $context->getConsumer()->getQueue()->getQueueName(),
3535
'redelivered' => $message->isRedelivered(),
3636
'body' => Stringify::that($message->getBody()),
@@ -45,12 +45,13 @@ public function onPostMessageReceived(PostMessageReceived $context): void
4545
$queue = $context->getConsumer()->getQueue();
4646
$result = $context->getResult();
4747

48+
$logMessage = 'Processed from {queueName}';
49+
4850
$reason = '';
49-
$logMessage = "Processed from {queueName}\t{body}\t{result}";
5051
if ($result instanceof Result && $result->getReason()) {
5152
$reason = $result->getReason();
52-
$logMessage .= ' {reason}';
5353
}
54+
5455
$logContext = [
5556
'result' => str_replace('enqueue.', '', $result),
5657
'reason' => $reason,

pkg/enqueue/Tests/Client/ConsumptionExtension/LogExtensionTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public function testShouldLogMessageReceived()
9191
$logger
9292
->expects($this->once())
9393
->method('debug')
94-
->with('Received from {queueName} {body}', [
94+
->with('Received from {queueName}', [
9595
'queueName' => 'aQueue',
9696
'redelivered' => false,
9797
'body' => Stringify::that('aBody'),
@@ -118,7 +118,7 @@ public function testShouldLogMessageProcessedWithStringResult()
118118
->expects($this->once())
119119
->method('log')
120120
->with(LogLevel::INFO,
121-
'Processed from {queueName} {body} {result}',
121+
'Processed from {queueName}',
122122
[
123123
'queueName' => 'aQueue',
124124
'body' => Stringify::that('aBody'),
@@ -148,7 +148,7 @@ public function testShouldLogRejectedMessageAsError()
148148
->expects($this->once())
149149
->method('log')
150150
->with(LogLevel::ERROR,
151-
'Processed from {queueName} {body} {result}',
151+
'Processed from {queueName}',
152152
[
153153
'queueName' => 'aQueue',
154154
'body' => Stringify::that('aBody'),
@@ -178,7 +178,7 @@ public function testShouldLogMessageProcessedWithResultObject()
178178
->expects($this->once())
179179
->method('log')
180180
->with(LogLevel::INFO,
181-
'Processed from {queueName} {body} {result}',
181+
'Processed from {queueName}',
182182
[
183183
'queueName' => 'aQueue',
184184
'body' => Stringify::that('aBody'),
@@ -208,7 +208,7 @@ public function testShouldLogMessageProcessedWithReasonResultObject()
208208
->expects($this->once())
209209
->method('log')
210210
->with(LogLevel::INFO,
211-
'Processed from {queueName} {body} {result} {reason}',
211+
'Processed from {queueName}',
212212
[
213213
'queueName' => 'aQueue',
214214
'body' => Stringify::that('aBody'),

pkg/enqueue/Tests/Consumption/Extension/LogExtensionTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function testShouldLogMessageReceived()
8585
$logger
8686
->expects($this->once())
8787
->method('debug')
88-
->with('Received from {queueName} {body}', [
88+
->with('Received from {queueName}', [
8989
'queueName' => 'aQueue',
9090
'redelivered' => false,
9191
'body' => Stringify::that('aBody'),
@@ -112,7 +112,7 @@ public function testShouldLogMessageProcessedWithStringResult()
112112
->expects($this->once())
113113
->method('log')
114114
->with(LogLevel::INFO,
115-
'Processed from {queueName} {body} {result}',
115+
'Processed from {queueName}',
116116
[
117117
'queueName' => 'aQueue',
118118
'body' => Stringify::that('aBody'),
@@ -142,7 +142,7 @@ public function testShouldLogRejectedMessageAsError()
142142
->expects($this->once())
143143
->method('log')
144144
->with(LogLevel::ERROR,
145-
'Processed from {queueName} {body} {result}',
145+
'Processed from {queueName}',
146146
[
147147
'queueName' => 'aQueue',
148148
'body' => Stringify::that('aBody'),
@@ -172,7 +172,7 @@ public function testShouldLogMessageProcessedWithResultObject()
172172
->expects($this->once())
173173
->method('log')
174174
->with(LogLevel::INFO,
175-
'Processed from {queueName} {body} {result}',
175+
'Processed from {queueName}',
176176
[
177177
'queueName' => 'aQueue',
178178
'body' => Stringify::that('aBody'),
@@ -202,7 +202,7 @@ public function testShouldLogMessageProcessedWithReasonResultObject()
202202
->expects($this->once())
203203
->method('log')
204204
->with(LogLevel::INFO,
205-
'Processed from {queueName} {body} {result} {reason}',
205+
'Processed from {queueName}',
206206
[
207207
'queueName' => 'aQueue',
208208
'body' => Stringify::that('aBody'),

Instagram Story Drawing Doula Quotes

Comments
 (0)