@@ -318,7 +318,16 @@ protected function process()
318
318
try {
319
319
$ this ->urlRewriteId = $ this ->persistUrlRewrite ($ urlRewrite );
320
320
} catch (\PDOException $ pdoe ) {
321
- $ message = sprintf ('%s with Urlrewrite Data %s " ' , $ pdoe ->getMessage (), $ urlRewrite );
321
+ $ message = sprintf (
322
+ 'Is a PDO exception is thrown: with Urlrewrite Data \\n
323
+ ("entity_id": "%s" && "request_path": "%s" && "target_path": "%s" && "entity_type": "%s" && "redirect_type": "%s" && "store_id": "%s") ' ,
324
+ $ urlRewriteProductCategory [MemberNames::ENTITY_ID ],
325
+ $ urlRewriteProductCategory [MemberNames::REQUEST_PATH ],
326
+ $ urlRewriteProductCategory [MemberNames::TARGET_PATH ],
327
+ $ urlRewriteProductCategory [MemberNames::ENTITY_TYPE ],
328
+ $ urlRewriteProductCategory [MemberNames::REDIRECT_TYPE ],
329
+ $ urlRewriteProductCategory [MemberNames::STORE_ID ]
330
+ );
322
331
if (!$ this ->getSubject ()->isStrictMode ()) {
323
332
$ this ->getSubject ()
324
333
->getSystemLogger ()
@@ -360,7 +369,16 @@ protected function process()
360
369
try {
361
370
$ this ->persistUrlRewriteProductCategory ($ urlRewriteProductCategory );
362
371
} catch (\PDOException $ pdoe ) {
363
- $ message = sprintf ('%s with Urlrewrite Data %s " ' , $ pdoe ->getMessage (), $ urlRewriteProductCategory );
372
+ $ message = sprintf (
373
+ 'Is a PDO exception is thrown: with Urlrewrite Data \\n
374
+ ("entity_id": "%s" && "request_path": "%s" && "target_path": "%s" && "entity_type": "%s" && "redirect_type": "%s" && "store_id": "%s") ' ,
375
+ $ urlRewriteProductCategory [MemberNames::ENTITY_ID ],
376
+ $ urlRewriteProductCategory [MemberNames::REQUEST_PATH ],
377
+ $ urlRewriteProductCategory [MemberNames::TARGET_PATH ],
378
+ $ urlRewriteProductCategory [MemberNames::ENTITY_TYPE ],
379
+ $ urlRewriteProductCategory [MemberNames::REDIRECT_TYPE ],
380
+ $ urlRewriteProductCategory [MemberNames::STORE_ID ]
381
+ );
364
382
if (!$ this ->getSubject ()->isStrictMode ()) {
365
383
$ this ->getSubject ()
366
384
->getSystemLogger ()
0 commit comments