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

Fix srcache fetch status in logs #117

Open
dhsathiya opened this issue Nov 12, 2020 · 1 comment · May be fixed by #118
Open

Fix srcache fetch status in logs #117

dhsathiya opened this issue Nov 12, 2020 · 1 comment · May be fixed by #118
Assignees

Comments

@dhsathiya
Copy link
Member

Replace: upstream_cache_status with srcache_fetch_status

    log_format rt_cache '$remote_addr $upstream_response_time $srcache_fetch_status [$time_local] '
    '$http_host "$request" $status $body_bytes_sent '
    '"$http_referer" "$http_user_agent"'
    ' $request_time' ;

Check upstream_response_time as well.

@dhsathiya dhsathiya self-assigned this Nov 12, 2020
@dhsathiya dhsathiya changed the title Fix srcache status in logs Fix srcache fetch status in logs Nov 12, 2020
@dhsathiya dhsathiya removed their assignment Nov 16, 2020
@mrrobot47 mrrobot47 transferred this issue from EasyEngine/easyengine Nov 17, 2020
@mrrobot47 mrrobot47 linked a pull request Nov 17, 2020 that will close this issue
3 tasks
@mrrobot47
Copy link
Member

$upstream_response_time will only come when cache is not hit, hence makes the log look a little non-uniform. So moving it to the end near $request_time.

@mrrobot47 mrrobot47 self-assigned this Nov 17, 2020
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 a pull request may close this issue.

2 participants