ppf/new: Uncompress archive before session parsing.
authorRazvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Thu, 25 Aug 2011 08:02:18 +0000 (11:02 +0300)
committerRazvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Thu, 25 Aug 2011 08:02:18 +0000 (11:02 +0300)
ppf/new/top.py

index 3f4ef10..82f0ff0 100644 (file)
@@ -44,7 +44,11 @@ def parse_store_session_archive(archive_file, session_config_file,
     # TODO: This needs rethinking. Client type is designed to be stored in
     # the database (referenced by the btclient_id).
     client_type = swarm_writer.first_access_instance().get_client_type_for_session(session_id)
-    parser = parsing.LogParser.get_parser(client_type, archive_file)
+
+    # TODO: Uncompress log archive.
+    uncompress_path = "/tmp"
+    # uncompress_log_archive(archive_file, uncompress_path)
+    parser = parsing.LogParser.get_parser(client_type, uncompress_path)
 
     parse_store_session(swarm_writer, parser, session_id)