Skip to content

Commit 400e379

Browse files
Peter Markirtakacs
authored andcommitted
Use the log function in the console module (#244)
JSRemoteTest-DCO-1.0-Signed-off-by: Peter Marki [email protected]
1 parent 0b5a339 commit 400e379

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

jstest/common/console.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,21 @@ def info(msg):
3232
'''
3333
Print debug message to the screen with green color.
3434
'''
35-
print('%s%s%s' % (TERMINAL_GREEN, msg, TERMINAL_EMPTY))
35+
log(msg=msg, color=TERMINAL_GREEN)
3636

3737

3838
def warning(msg):
3939
'''
4040
Print debug message to the screen with yellow color.
4141
'''
42-
print('%s%s%s' % (TERMINAL_YELLOW, msg, TERMINAL_EMPTY))
42+
log(msg=msg, color=TERMINAL_YELLOW)
4343

4444

4545
def error(msg):
4646
'''
4747
Print debug message to the screen with red color.
4848
'''
49-
print('%s%s%s' % (TERMINAL_RED, msg, TERMINAL_EMPTY))
49+
log(msg=msg, color=TERMINAL_RED)
5050

5151

5252
def fail(msg):

0 commit comments

Comments
 (0)