Skip Navigation
Lemmy Support @lemmy.ml pineapple @lemmy.pineapplemachine.com

Lemmy's server log is extremely noisy, seemingly logging every single ActivityPub network request and its complete payload. How can I change this?

My log (accessed via docker-compose logs -f lemmy has gotten very noisy since my instance has been federating with several others. It makes it harder to troubleshoot odd behavior and I'm concerned that it's going to quickly fill up my server's disk with logs. What can I do to improve this?

7

You're viewing a single thread.

7 comments
  • I just used the Docker logging options to cap the stdout/stderr log to a reasonable size. Just add logging options to each chatty service and change 25m to whatever makes sense for your environment.

    docker-compose.yml:

    services:
      ....
      lemmy:
        ...
         logging:                                                                                                                                                                                 
            options:                                                                                                                                                                               
              max-size: 25m
      pictrs:
        ...
           logging:                                                                                                                                                                                 
            options:                                                                                                                                                                               
              max-size: 25m
    
7 comments