Adjusting log length
This commit is contained in:
@@ -50,10 +50,10 @@ class Log:
|
|||||||
"""
|
"""
|
||||||
Logs info messages with validation step
|
Logs info messages with validation step
|
||||||
"""
|
"""
|
||||||
space_to_add = int(30 - len(msg[0:30]))
|
space_to_add = int(31 - len(msg[0:31]))
|
||||||
space = " "
|
space = " "
|
||||||
print(
|
print(
|
||||||
Log.OKBLUE + "{0}".format(msg[0:30]) +
|
Log.OKBLUE + "{0}".format(msg[0:31]) +
|
||||||
"{0}".format(space[0:space_to_add]) +
|
"{0}".format(space[0:space_to_add]) +
|
||||||
" [" + Log.ENDC + ".." + Log.OKBLUE + "]" + Log.ENDC, end=end)
|
" [" + Log.ENDC + ".." + Log.OKBLUE + "]" + Log.ENDC, end=end)
|
||||||
if log:
|
if log:
|
||||||
@@ -63,10 +63,10 @@ class Log:
|
|||||||
"""
|
"""
|
||||||
Logs info messages after validation step
|
Logs info messages after validation step
|
||||||
"""
|
"""
|
||||||
space_to_add = int(30 - len(msg[0:30]))
|
space_to_add = int(31 - len(msg[0:31]))
|
||||||
space = " "
|
space = " "
|
||||||
print(
|
print(
|
||||||
Log.OKBLUE + "{0}".format(msg[0:30]) +
|
Log.OKBLUE + "{0}".format(msg[0:31]) +
|
||||||
"{0}".format(space[0:space_to_add]) +
|
"{0}".format(space[0:space_to_add]) +
|
||||||
" [" + Log.ENDC + Log.OKGREEN + "OK" +
|
" [" + Log.ENDC + Log.OKGREEN + "OK" +
|
||||||
Log.ENDC + Log.OKBLUE + "]" + Log.ENDC, end=end)
|
Log.ENDC + Log.OKBLUE + "]" + Log.ENDC, end=end)
|
||||||
@@ -77,10 +77,10 @@ class Log:
|
|||||||
"""
|
"""
|
||||||
Logs info messages after validation step
|
Logs info messages after validation step
|
||||||
"""
|
"""
|
||||||
space_to_add = int(30 - len(msg[0:30]))
|
space_to_add = int(31 - len(msg[0:31]))
|
||||||
space = " "
|
space = " "
|
||||||
print(
|
print(
|
||||||
Log.OKBLUE + "{0}".format(msg[0:30]) +
|
Log.OKBLUE + "{0}".format(msg[0:31]) +
|
||||||
"{0}".format(space[0:space_to_add]) +
|
"{0}".format(space[0:space_to_add]) +
|
||||||
" [" + Log.ENDC + Log.FAIL + "OK" +
|
" [" + Log.ENDC + Log.FAIL + "OK" +
|
||||||
Log.ENDC + Log.OKBLUE + "]" + Log.ENDC, end=end)
|
Log.ENDC + Log.OKBLUE + "]" + Log.ENDC, end=end)
|
||||||
|
|||||||
Reference in New Issue
Block a user