9001 / 9001/copyparty

Less verbose logging options

Ouverte
#1,593 0 commentaires 0 réactions 1 personne assignée Réclamée par @9001 Voir sur GitHub
enhancement
Langage dominant
Python
Étoiles
46.6k
Forks
1.9k
Merge moyen
10 j 16 h
PR mergées (30 j)
5

Description

**is your feature request related to a problem? Please describe.**

By default logs are kind of all or nothing setup. With `-q` nothing is logged including stuff like user bans. (thus making `thank you for playing (see fileserver log and readme)` not helpful at all)

I tried to limit some logs with very wide `--lf-url`, but this only stops logging web requests. Entering a directory with images still generates a ton of thumbnail generating logs for example. This makes it quite hard to actually find useful logs when troubleshooting.

**Describe the idea / solution you'd like**

Global log level would be nice. At the very least implement this for the most "noisy" logs like access log and thumbnails. It would be nice if only failures were logged for these for example.

**Describe any alternatives you've considered**

I'm using `-q` right now, but that one is a bit too much, I would not mind some startup logs and such. I also appreciate some warning messages. The `--lf-url` can limit the access logs, but as far as I can tell this will also prevent failed access logs.

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.