Skip to content

Commit fe0cf2a

Browse files
committed
chore(send): environ, hide: AWS_*KEY*, HF_AUTH_TOKEN from logs
1 parent dc8acd7 commit fe0cf2a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

send.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@
77
from requests_futures.sessions import FuturesSession
88

99
print()
10-
print(os.environ)
10+
environ = os.environ.copy()
11+
for key in ["AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY", "HF_AUTH_TOKEN"]:
12+
if environ.get(key, None):
13+
environ[key] = "XXX"
14+
print(environ)
1115
print()
1216

1317

0 commit comments

Comments
 (0)