FroshTools icon indicating copy to clipboard operation
FroshTools copied to clipboard

Log viewer does not work with Shopware 6.6

Open mbranz opened this issue 1 year ago • 3 comments

PHP Version

8.3.9

Shopware Version

6.6.3.1, 6.6.4.1

Plugin Version

2.1.2

Actual behaviour

The Log viewer find all rows, but the all fields of the lines delivered by the API are null:

{
        "message": null,
        "channel": null,
        "date": null,
        "level": null
},

image

Expected behaviour

That the Log viewer shows the logs.

Steps to Reproduce?

  1. Use the https://github.com/shopware/docker as base docker image
  2. Install the Tool's plugin from the Shopware Store via composer.json
  3. Start the container
  4. Go to the Log viewer and see that the logs are not shown correctly

mbranz avatar Jul 17 '24 10:07 mbranz

shopware/docker does not use files for logging instead pushing it to STDOUT so the container runtime can grab the logs. So this is normal

shyim avatar Jul 19 '24 06:07 shyim

Yes, the logs are shown in the STDOUT, but the log files are generated and have content. Also, the number of lines of the file are correctly delivered, but the LogController cannot read/decode them, maybe because it is a JSON and not a simple log?

mbranz avatar Jul 19 '24 08:07 mbranz

yes because they are json. but they should not be generated at all 🤔

shyim avatar Jul 19 '24 08:07 shyim