Uploaded image for project: 'eZ Platform Enterprise Edition'
  1. eZ Platform Enterprise Edition
  2. EZEE-3346

Add logging to ezsystems/ezplatform-page-fieldtype under catch all errors

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Medium Medium
    • Customer request
    • 3.2.0, 2.5.14, 3.1.4
    • Page Builder
    • None

    Description

      There are quite a few places in the codebase for ezsystems/ezplatform-page-fieldtype where exceptions are blackholed. This severely affects the observability of these errors when creating/developing these blocks.

      Examples can be found under:
      src/lib/Event/Subscriber/BlockResponseSubscriber.php

       51,11:         } catch (\Exception $e)

      lib/Event/Subscriber/CollectRelationsSubscriber.php

      62,15: catch (\Exception $e)

      lib/FieldType/Page/Block/Event/Listener/ContentListBlockListener.php

      159,11:         } catch (\Exception $e)

      /lib/FieldType/Page/Block/Event/Listener/GalleryBlockListener.php

      111,11:         }
      catch (\Exception $e) {
      

       
      It would be great if errors here could be logged in some way instead of the contents of them been discarded (especially src/lib/Event/Subscriber/BlockResponseSubscriber.php) where if a block fails to render due to unknown errors it seems to just vanish? 

      Attachments

        Activity

          People

            Unassigned Unassigned
            ryanolee ryanolee
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: