OpenPecha / prodigy-tools

Tools for OpenPecha's use of Prodigy
MIT License
0 stars 1 forks source link

Prodigy logs #4

Open eroux opened 1 year ago

eroux commented 1 year ago

I tried to look at the logs of prodigy but couldn't really find anything useful in journalctl -u prodigy_bdrc_crop_images.service, I'm not sure where prodigy logs errors, info, etc. but it should be instructed to do so in a file in /usr/local/prodigy/logs/

ta4tsering commented 1 year ago

Both error and info log of the bdrc_crop_images.py recipe is at the /usr/local/prodigy/logs/bdrc_crop_images.log.

logs path in recipe

Screenshot 2023-01-12 at 10 26 32 AM

below is the log file

bdrc_crop_images.log

eroux commented 1 year ago

yes, I'm aware of that, I was referring to the prodigy logs in general

ta4tsering commented 1 year ago

so I have introduced the Environment=PRODIGY_LOOGING=verbose in the /etc/systemd/system/prodigy_bdrc_crop_images.service as per the Documentaion and when I do sudo journalctl -u prodigy_bdrc_crop_images.service and go to the page, all the logs are available but I couldn't instruct it to write the logs at the /usr/local/prodigy/logs. I tried by adding "log_file": "/usr/local/prodigy/logs/prodigy.log" in the /usr/local/prodigy/prodigy-tools/configuration/bdrc_crop_images.json but after restarting the server. there is still no prodigy.log file in the /usr/local/prodigy/logs below is the image of the page after the command sudo journalctl -u prodigy_bdrc_crop_images.service

Screenshot 2023-01-16 at 4 17 35 PM

p.s I have tested all through making changes in the .service file at the server. if the addition of the Environment=PRODIGY_LOGGING=verbose looks good, then I will commit it in the prodigy-tools/install-scripts/prodigy_bdrc_crop_images.service and push the commit.

eroux commented 1 year ago

thanks for the investigation! I'm sure we can find a way to get the logs somehow. If you're rally stuck you can look on the Prodigy forum and ask a new question if you don't find anything, they seem to answer usually

ta4tsering commented 1 year ago

sure, I will post the question on the forum.