diff --git a/app.py b/app.py index fbea29e..a94a4c2 100644 --- a/app.py +++ b/app.py @@ -422,6 +422,10 @@ async def remove_background( log["source"] = "url" if url else "file" if url: log["url_host"] = urlparse(url).hostname or "-" + # Full URL for debugging. NOTE: presigned URLs put their auth token in + # the query string, so this lands credentials in the log -- acceptable + # here (trusted callers, private log); drop the query if that changes. + log["url"] = url[:512] log["seg_model"] = normalized_seg log["cross_check"] = "on" if effective_cc else "off" log["background_mode"] = effective_bg