Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add log file option to main.py

  • Loading branch information...
commit 624f4789be28adc5b693f4ae79c4cb9f427d3538 1 parent b8cd7de
Andrew Fleenor authored

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. +2 1  main.py
3  main.py
@@ -32,6 +32,7 @@
32 32 dest='pad_missing_tcp_data', default=False)
33 33 parser.add_option('--strict-http-parsing', action='store_true',
34 34 dest='strict_http_parsing', default=False)
  35 +parser.add_option('-l', '--log', dest='logfile', default='pcap2har.log')
35 36 options, args = parser.parse_args()
36 37
37 38 # copy options to settings module
@@ -41,7 +42,7 @@
41 42 settings.strict_http_parse_body = options.strict_http_parsing
42 43
43 44 # setup logs
44   -logging.basicConfig(filename='pcap2har.log', level=logging.INFO)
  45 +logging.basicConfig(filename=options.logfile, level=logging.INFO)
45 46
46 47 # get filenames, or bail out with usage error
47 48 if len(args) == 2:

0 comments on commit 624f478

Please sign in to comment.
Something went wrong with that request. Please try again.