-
Notifications
You must be signed in to change notification settings - Fork 7
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
Fix uwsgi log file permissions (PP-1667) #2077
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
missingok | ||
daily | ||
create 0660 simplified adm | ||
rotate 30 | ||
rotate 13 | ||
compress | ||
delaycompress | ||
notifempty | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
/var/log/simplified/*.log { | ||
missingok | ||
daily | ||
create 0700 root root | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because we use |
||
rotate 13 | ||
copytruncate | ||
compress | ||
|
@@ -13,8 +12,7 @@ | |
/var/log/uwsgi/*.log { | ||
missingok | ||
daily | ||
create 0660 simplified adm | ||
rotate 30 | ||
rotate 13 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Align this with the configuration we push out in our playbook. |
||
copytruncate | ||
compress | ||
delaycompress | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
[uwsgi] | ||
log-format = [uwsgi] %(var.HTTP_X_FORWARDED_FOR) (%(addr)) - - [%(ltime)] "%(method) %(uri) %(proto)" %(status) %(size) "%(referer)" "%(uagent)" host_hdr=%(host) req_time_elapsed=%(msecs) process=%(pid) worker=%(wid) | ||
logfile-chmod = 644 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This configuration option isn't used when using When we switched to using |
||
logger = stdio: | ||
logger = file:/var/log/uwsgi/uwsgi.log |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Align this with the retention we have for our other logs