We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07499a9 commit 06a7bcfCopy full SHA for 06a7bcf
onlinejudge_verify/verify.py
@@ -4,6 +4,7 @@
4
import math
5
import os
6
import pathlib
7
+import re
8
import subprocess
9
import time
10
import traceback
@@ -37,7 +38,10 @@ def succeeded(self) -> bool:
37
38
39
def exec_command(command: List[str]):
40
# NOTE: secrets like YUKICODER_TOKEN are masked
- logger.info('$ %s', ' '.join(command))
41
+ # dropbox-tokenを新規に取得する場合は、そのトークンが表示されるのでそれもマスクする
42
+ dropbox_token_pattern = re.compile(r'(--dropbox-token)\s+([^\s]+)')
43
+ message = dropbox_token_pattern.sub(r'\1 ***', ' '.join(command))
44
+ logger.info('$ %s', message)
45
46
cwd = pathlib.Path.cwd()
47
try:
0 commit comments