nylonee / watchlistarr

Customizable sync of Plex Watchlist to Sonarr/Radarr
GNU General Public License v3.0
186 stars 14 forks source link

Container log file size #173

Open samcro1967 opened 3 months ago

samcro1967 commented 3 months ago

After running this image for a few weeks, the container log file has grown to almost 200 GB. I needed to reclaim space so I stopped the container, truncated the log file, limited the log file size, and restarted the container. Not sure if this is normal/expected or if I have something misconfigured.

I added the following to docker compose if anyone else sees a similiar issue.

    logging:
      driver: "json-file"
      options:
        max-size: "10m"
        max-file: "3"

Everything seems to be running normally

nylonee commented 2 months ago

That's mad. Is this with debug on or off?

samcro1967 commented 2 months ago

Ah, I did have debug enabled. Forgot that I had even enabled it when first setting up. Forgot to disable after I got things running successfully. That is still a lot. Might want to look at using files for logging with file rotation down the road. Maybe a file a day and keep a week's worth of logs or something along those lines. I like the way the arr's do it with separate files for info versus debug versus trace as well.