squid-deb-proxy logs to /var/log/squid/access.log

Bug #1917385 reported by Paul Collins on 2021-03-02
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Repository Cache Charm
Medium
Haw Loeung

Bug Description

The following claim is made in `templates/squid-deb-proxy/squid-deb-proxy.conf`:

```
# DEBUG: Uncomment to log all requests
#access_log daemon:/var/log/squid-deb-proxy/access.log
```

However, what actually happens is that squid uses its compiled-in default and logs to /var/log/squid/access.log, for example:

```
ubuntu@juju-a8fa21-5:~$ grep access_log /etc/squid-deb-proxy/squid-deb-proxy.conf
#access_log daemon:/var/log/squid-deb-proxy/access.log
ubuntu@juju-a8fa21-5:~$ sudo tail -n1 /var/log/squid/access.log
1614650177.221 69 127.0.0.1 TCP_MISS/200 264 HEAD http://us.archive.ubuntu.com/ubuntu/pool/main/ - HIER_DIRECT/91.189.91.39 text/html
ubuntu@juju-a8fa21-5:~$ date -d @1614650177
Tue Mar 2 01:56:17 UTC 2021
ubuntu@juju-a8fa21-5:~$ date -u
Tue Mar 2 01:56:27 UTC 2021
ubuntu@juju-a8fa21-5:~$
```

Related branches

Haw Loeung (hloeung) on 2021-03-02
Changed in ubuntu-repository-cache:
status: New → Triaged
importance: Undecided → Medium
Haw Loeung (hloeung) on 2021-03-02
Changed in ubuntu-repository-cache:
status: Triaged → In Progress
assignee: nobody → Haw Loeung (hloeung)
Haw Loeung (hloeung) on 2021-03-02
Changed in ubuntu-repository-cache:
status: In Progress → Fix Committed
Haw Loeung (hloeung) on 2021-03-03
Changed in ubuntu-repository-cache:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers