diff options
author | René Stadler <mail@renestadler.de> | 2007-11-22 11:56:34 +0200 |
---|---|---|
committer | René Stadler <mail@renestadler.de> | 2007-11-22 11:56:34 +0200 |
commit | 5b738ec2b9daeb79b94d692c699f2ae0e35b646d (patch) | |
tree | ace662763dc01591505d579b8f38a18db177596e | |
parent | 8305ed8dceefb7df11d0d0b567b222e39ad241a2 (diff) |
Adjust test log generator
-rwxr-xr-x | tests/create-test-log.py | 4 |
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 () |