mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-03-29 22:20:24 +00:00
Scrub basic auth header from logs (#834)
This commit is contained in:
parent
5a60090ddc
commit
1f2ad8da00
@ -56,7 +56,7 @@ void print_req(const req_https_t &request) {
|
|||||||
BOOST_LOG(debug) << "DESTINATION :: "sv << request->path;
|
BOOST_LOG(debug) << "DESTINATION :: "sv << request->path;
|
||||||
|
|
||||||
for(auto &[name, val] : request->header) {
|
for(auto &[name, val] : request->header) {
|
||||||
BOOST_LOG(debug) << name << " -- " << val;
|
BOOST_LOG(debug) << name << " -- " << (name == "Authorization" ? "CREDENTIALS REDACTED" : val);
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOST_LOG(debug) << " [--] "sv;
|
BOOST_LOG(debug) << " [--] "sv;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user