Adjust test log generator

This commit is contained in:
René Stadler 2007-11-22 11:56:34 +02:00 committed by Stefan Sauer
parent 98b381c7d9
commit abd90f42be

View file

@ -25,10 +25,12 @@ def main ():
Data.debug_level_debug, Data.debug_level_debug,
Data.debug_level_info,) Data.debug_level_info,)
shift = 0
for i in xrange (count): for i in xrange (count):
ts = i * 10000 ts = i * 10000
level = levels[i % 3] shift += i % (count // 100)
level = levels[(i + shift) % 3]
line = Data.LogLine ([ts, pid, thread, level, category, filename, file_line, function, object_, message]) line = Data.LogLine ([ts, pid, thread, level, category, filename, file_line, function, object_, message])
print line.line_string () print line.line_string ()