micromata / dave

A totally simple and very easy to configure stand alone webdav server
Apache License 2.0
350 stars 46 forks source link

enabling update log has no effect #51

Open macno opened 1 year ago

macno commented 1 year ago

Hello team, I'm currently testing dave to store buttercup vaults.
I configured a couple of users and enabled all the logs.

I was expecting to see a log every time a user updates the vault but looks like only the "read" operations are logged.

here's the log

time="2023-03-25T08:24:22Z" level=info msg="Server is starting and listening" address=0.0.0.0 port=8000 security=none
time="2023-03-25T08:24:52Z" level=info msg="Opened file" path=/data/test-vault.bcup user=michele
time="2023-03-25T08:25:10Z" level=info msg="Opened file" path=/data/test-vault.bcup user=michele
time="2023-03-25T08:25:10Z" level=info msg="Opened file" path=/data/test-vault.bcup user=michele
time="2023-03-25T08:25:10Z" level=info msg="Opened file" path=/data/test-vault.bcup user=michele
time="2023-03-25T08:25:16Z" level=info msg="Opened file" path=/data/test-vault.bcup user=michele
time="2023-03-25T08:25:16Z" level=info msg="Opened file" path=/data/test-vault.bcup user=michele
time="2023-03-25T08:25:17Z" level=info msg="Opened file" path=/data/test-vault.bcup user=michele
time="2023-03-25T08:26:00Z" level=info msg="Opened file" path=/data/test-vault.bcup user=michele
time="2023-03-25T08:27:18Z" level=info msg="Opened file" path=/data/test-vault.bcup user=michele
time="2023-03-25T08:27:18Z" level=info msg="Opened file" path=/data/test-vault.bcup user=michele
time="2023-03-25T08:27:19Z" level=info msg="Opened file" path=/data/test-vault.bcup user=michele
time="2023-03-25T08:27:32Z" level=info msg="Opened file" path=/data/test-vault.bcup user=michele
time="2023-03-25T08:27:32Z" level=info msg="Opened file" path=/data/test-vault.bcup user=michele
time="2023-03-25T08:27:32Z" level=info msg="Opened file" path=/data/test-vault.bcup user=michele
time="2023-03-25T08:46:56Z" level=info msg="Opened file" path=/data/test-vault.bcup user=michele

and the file

~/dave$ ls -ln data/
total 4
-rw-r--r-- 1 100 65533 2720 Mar 25 08:27 test-vault.bcup

As you can see file has been updated at 08:27 but there's no evidence of it in the logs

Am I missing something?