summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtests/create-test-log.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/create-test-log.py b/tests/create-test-log.py
index 36ec8dc..f450161 100755
--- a/tests/create-test-log.py
+++ b/tests/create-test-log.py
@@ -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 ()