Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add log rotation settings #179

Merged
merged 2 commits into from
Apr 3, 2025

Conversation

obscurerichard
Copy link
Contributor

@obscurerichard obscurerichard commented Mar 27, 2025

This is at least a partial fix for:

(I'm testing this today, will comment further on how it goes)

I see the support for backend/.env had been removed in compose.yml also recently - but this is really useful for setting non-default settings, so this adds it back.

Why did this get taken out?
I find it useful.
@obscurerichard
Copy link
Contributor Author

obscurerichard commented Mar 31, 2025

I set this to keep 240 logs and rotate every hour, and after a bit more than an hour the internal logs directory looks like:

root@2c5c3136b064:/app/backend# ls -l logs
total 1188
-rw-r--r--. 1 root root 478605 Mar 31 19:00 debug.json
-rw-r--r--. 1 root root 736792 Mar 31 18:49 debug.json.0
-rw-r--r--. 1 root root      0 Mar 31 19:00 error.json
-rw-r--r--. 1 root root      0 Mar 31 18:37 error.json.0

So I'd say this is working as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants