Skip to content

Commit 07d2f44

Browse files
Display seconds in logging (#4799)
Show seconds in both client and server logs to make troubleshooting user issues easier.
1 parent ce5ed25 commit 07d2f44

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

analyzer/tests/functional/analyze_and_parse/test_analyze_and_parse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def check_one_file(self, path, mode):
230230
"Found 1 source file to analyze in"]
231231
for line in output:
232232
# replace timestamps
233-
line = re.sub(r'\[\w+ \d{4}-\d{2}-\d{2} \d{2}:\d{2}\]',
233+
line = re.sub(r'\[\w+ \d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\]',
234234
'[]', line)
235235

236236
# Replace full path only to file name on the following

analyzer/tests/functional/parse_status/test_parse_status.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def __run_cmd(self, cmd):
7676
processed_output = []
7777
for line in output:
7878
# replace timestamps
79-
line = re.sub(r'\[\w+ \d{4}-\d{2}-\d{2} \d{2}:\d{2}\]',
79+
line = re.sub(r'\[\w+ \d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\]',
8080
'[]', line)
8181
processed_output.append(line)
8282

codechecker_common/logger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def debug_analyzer(self, msg, *args, **kwargs):
5757
"formatters": {
5858
"brief": {
5959
"format": "[%(levelname)s %(asctime)s] - %(message)s",
60-
"datefmt": "%Y-%m-%d %H:%M"
60+
"datefmt": "%Y-%m-%d %H:%M:%S"
6161
},
6262
"precise": {
6363
"format": "[%(levelname)s] [%(asctime)s] {%(name)s} [%(process)d] \

0 commit comments

Comments
 (0)