put an entire line of output inside a single mutex so we don't cross the streams
This commit is contained in:
@@ -124,11 +124,12 @@ private ######################################################################
|
|||||||
end
|
end
|
||||||
|
|
||||||
def info(message, name="system", color=Term::ANSIColor.white)
|
def info(message, name="system", color=Term::ANSIColor.white)
|
||||||
print color
|
output = ""
|
||||||
print "#{Time.now.strftime("%H:%M:%S")} #{pad_process_name(name)} | "
|
output += color
|
||||||
print Term::ANSIColor.reset
|
output += "#{Time.now.strftime("%H:%M:%S")} #{pad_process_name(name)} | "
|
||||||
print message.chomp
|
output += Term::ANSIColor.reset
|
||||||
puts ""
|
output += message.chomp
|
||||||
|
puts output
|
||||||
end
|
end
|
||||||
|
|
||||||
def print(message=nil)
|
def print(message=nil)
|
||||||
|
|||||||
Reference in New Issue
Block a user