@@ -91,18 +91,20 @@ private function processVhost(array $vhostApiData): ?VhostApiDto
9191 $ indexedSuccessfully = $ this ->internalStorageManager ->indexVhost ($ vhostDto , $ this ->groups );
9292 if (!$ indexedSuccessfully ) {
9393 $ this ->warn (sprintf (
94- 'Skip indexation vhost: "%s". Messages ready: %d. ' ,
94+ 'Skip indexation vhost: "%s". Messages ready: %d. Messages unacknowledged: %d. ' ,
9595 $ vhostDto ->getName (),
96- $ vhostDto ->getMessagesReady ()
96+ $ vhostDto ->getMessagesReady (),
97+ $ vhostDto ->getMessagesUnacknowledged ()
9798 ));
9899
99100 return null ;
100101 }
101102
102103 $ this ->info (sprintf (
103- 'Successfully indexed vhost: "%s". Messages ready: %d. ' ,
104+ 'Successfully indexed vhost: "%s". Messages ready: %d. Messages unacknowledged: %d. ' ,
104105 $ vhostDto ->getName (),
105- $ vhostDto ->getMessagesReady ()
106+ $ vhostDto ->getMessagesReady (),
107+ $ vhostDto ->getMessagesUnacknowledged ()
106108 ));
107109
108110 $ vhostQueues = $ this ->queueService ->getAllVhostQueues ($ vhostDto );
@@ -171,20 +173,22 @@ private function processVhostQueue(array $queueApiData): ?QueueApiDto
171173 $ indexedSuccessfully = $ this ->internalStorageManager ->indexQueue ($ queueApiDto , $ this ->groups );
172174 if (!$ indexedSuccessfully ) {
173175 $ this ->warn (sprintf (
174- 'Skip indexation queue: "%s". Vhost: %s. Messages ready: %d. ' ,
176+ 'Skip indexation queue: "%s". Vhost: %s. Messages ready: %d. Messages unacknowledged: %d. ' ,
175177 $ queueApiDto ->getName (),
176178 $ queueApiDto ->getVhostName (),
177- $ queueApiDto ->getMessagesReady ()
179+ $ queueApiDto ->getMessagesReady (),
180+ $ queueApiDto ->getMessagesUnacknowledged ()
178181 ));
179182
180183 return null ;
181184 }
182185
183186 $ this ->info (sprintf (
184- 'Successfully indexed queue: "%s". Vhost: %s. Messages ready: %d. ' ,
187+ 'Successfully indexed queue: "%s". Vhost: %s. Messages ready: %d. Messages unacknowledged: %d. ' ,
185188 $ queueApiDto ->getName (),
186189 $ queueApiDto ->getVhostName (),
187- $ queueApiDto ->getMessagesReady ()
190+ $ queueApiDto ->getMessagesReady (),
191+ $ queueApiDto ->getMessagesUnacknowledged ()
188192 ));
189193
190194 return $ queueApiDto ;
0 commit comments