Skip to content

Commit

Permalink
accesslog: exclude thumbnails by default
Browse files Browse the repository at this point in the history
  • Loading branch information
9001 committed Dec 3, 2024
1 parent 6cedcfb commit 9082c47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion copyparty/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1318,7 +1318,7 @@ def add_logging(ap):
ap2.add_argument("--log-htp", action="store_true", help="debug: print http-server threadpool scaling")
ap2.add_argument("--ihead", metavar="HEADER", type=u, action='append', help="print request \033[33mHEADER\033[0m; [\033[32m*\033[0m]=all")
ap2.add_argument("--ohead", metavar="HEADER", type=u, action='append', help="print response \033[33mHEADER\033[0m; [\033[32m*\033[0m]=all")
ap2.add_argument("--lf-url", metavar="RE", type=u, default=r"^/\.cpr/|\?th=[wj]$|/\.(_|ql_|DS_Store$|localized$)", help="dont log URLs matching regex \033[33mRE\033[0m")
ap2.add_argument("--lf-url", metavar="RE", type=u, default=r"^/\.cpr/|[?&]th=[wjp]|/\.(_|ql_|DS_Store$|localized$)", help="dont log URLs matching regex \033[33mRE\033[0m")


def add_admin(ap):
Expand Down

0 comments on commit 9082c47

Please sign in to comment.