Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Ethan had the right idea about logging in tcp/direction.py

replace reference to logging with log, and remove import logging
at top.
  • Loading branch information...
commit 54c490d5dbe4d85d4a2e3400911e862aa073325c 1 parent 9cfb7b8
Andrew Fleenor authored

Showing 1 changed file with 1 addition and 2 deletions. Show diff stats Hide diff stats

  1. +1 2  tcp/direction.py
3  tcp/direction.py
@@ -4,7 +4,6 @@
4 4 import logging as log
5 5 import settings
6 6 import packet
7   -import logging
8 7
9 8 class Direction:
10 9 '''
@@ -212,7 +211,7 @@ def pad_missing_data(self):
212 211 for chunk in self.chunks[1:]:
213 212 gap = chunk.seq_start - prev_chunk.seq_end
214 213 if gap > 0:
215   - logging.info('Padding %d missing bytes at %d',
  214 + log.info('Padding %d missing bytes at %d',
216 215 gap, prev_chunk.seq_end)
217 216 first_chunk_pkt = self.seq_arrival(chunk.seq_start)
218 217 chunk_ts = first_chunk_pkt.ts

0 comments on commit 54c490d

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