mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
Adjust test log generator
This commit is contained in:
parent
98b381c7d9
commit
abd90f42be
1 changed files with 3 additions and 1 deletions
|
@ -25,10 +25,12 @@ def main ():
|
|||
Data.debug_level_debug,
|
||||
Data.debug_level_info,)
|
||||
|
||||
shift = 0
|
||||
for i in xrange (count):
|
||||
|
||||
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])
|
||||
print line.line_string ()
|
||||
|
||||
|
|
Loading…
Reference in a new issue