Skip to content

Commit b065baf

Browse files
committed
Logger cleanup.
1 parent 1ea6248 commit b065baf

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

linter.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ def find_errors(self, output):
3636
3737
"""
3838
output_json = sublime.decode_value(output)
39-
40-
# logger.info('output_json:"{}", file: "{}"'.format(output_json, self.filename))
39+
logger.debug('output_json:"%s", file: "%s"', output_json, self.filename)
4140

4241
for file in output_json:
4342
for message in file['messages']:
@@ -62,14 +61,13 @@ def parse_message(self, message):
6261
# ignore info messages by setting message to None
6362
message = None
6463

65-
message = 'message -- msg:"{}", line:{}, col:{}, error: {}, warning: {}, message_obj:{}'
66-
logger.info(message.format(
64+
logger.info('message -- msg:"%s", line:%s, col:%s, error: %s, warning: %s, message_obj:%s',
6765
error_message,
6866
line,
6967
col,
7068
error,
7169
warning,
7270
message,
73-
))
71+
)
7472

7573
return message, line, col, error, warning, error_message, None

0 commit comments

Comments
 (0)