Commit c761ac65 authored by Karsten Loesing's avatar Karsten Loesing
Browse files

Fix a bug introduced by the TGen 1.0.0 update.

The bug was that we were using the wrong Analysis class in measure
mode:

AttributeError: 'Analysis' object has no attribute 'add_torctl_file'
parent a11531b5
......@@ -150,7 +150,7 @@ def logrotate_thread_task(writables, tgen_writable, torctl_writable, docroot, ni
public_measurement_ip_guess = util.get_ip_address()
# set up the analysis object with our log files
anal = analysis.Analysis(nickname=nickname, ip_address=public_measurement_ip_guess)
anal = analysis.OPAnalysis(nickname=nickname, ip_address=public_measurement_ip_guess)
if tgen_writable is not None:
anal.add_tgen_file(tgen_writable.rotate_file(filename_datetime=next_midnight))
if torctl_writable is not None:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment