dockerfiles icon indicating copy to clipboard operation
dockerfiles copied to clipboard

Fix srcache fetch status in logs

Open dhsathiya opened this issue 4 years ago • 1 comments

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 avatar Nov 12 '20 09:11 dhsathiya

$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 avatar Nov 17 '20 13:11 mrrobot47