jstaf / onedriver

A native Linux filesystem for Microsoft OneDrive
GNU General Public License v3.0
1.88k stars 92 forks source link

Onedriver filling syslog at the speed of light #270

Closed krptg0 closed 1 year ago

krptg0 commented 1 year ago

Hi,

Thanks for the awesome work :)

Since installation, onedriver borgs up syslog, making it as big as 15Gb in only 3 days. Syslog is full of these kind of lines :

Jul 27 14:58:18 hostname onedriver[2198]: #033[90m14:58:18#033[0m #033[33mDBG#033[0m  #033[36mop=#033[0mStatFs
Jul 27 14:58:19 hostnameonedriver[2198]: #033[90m14:58:19#033[0m #033[32mINF#033[0m Fetched 0 deltas.
Jul 27 14:58:19 hostname onedriver[2198]: #033[90m14:58:19#033[0m #033[33mDBG#033[0m Serializing cache metadata to disk.
Jul 27 14:58:20 hostnameonedriver[2198]: #033[90m14:58:20#033[0m #033[33mDBG#033[0m  #033[36mop=#033[0mStatFs
Jul 27 14:58:22 hostname onedriver[2198]: #033[90m14:58:22#033[0m #033[33mDBG#033[0m  #033[36mop=#033[0mStatFs

Is there something to do to limit its verbosity ? Thanks in advance,

jstaf commented 1 year ago

Change the log level to warn or info (there is a --log option). Follow the directions here re: systemctl edit https://github.com/jstaf/onedriver/issues/164#issuecomment-903293098, but instead of the custom cache location just add the log optino

# setting the log level to warn
[Service]
ExecStart=
ExecStart=/usr/bin/onedriver --log warn %f

The log level is roughly the following:

Hoping to make this easier to configure in the next version.