~ubuntu-branches/debian/jessie/apachedex/jessie

« back to all changes in this revision

Viewing changes to apachedex/__init__.py

  • Committer: Package Import Robot
  • Author(s): Arnaud Fontaine
  • Date: 2014-07-11 12:01:19 UTC
  • Revision ID: package-import@ubuntu.com-20140711120119-366m95oyv48tnp54
Tags: 1.6.2-1
Initial upload. Closes: #754352.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1304
1304
      'ignored. Useful to exclude monitoring systems.')
1305
1305
 
1306
1306
  args = parser.parse_args()
 
1307
  if not args.logfile and not args.state_file:
 
1308
    parser.error('Either --state-file or logfile arguments '
 
1309
                 'must be specified.')
1307
1310
  if DURATION_US_FORMAT in args.logformat:
1308
1311
    getDuration = lambda x: int(x.group('duration'))
1309
1312
  elif DURATION_S_FORMAT in args.logformat:
1334
1337
          key += n()
1335
1338
        elif fmt == '>':
1336
1339
          key += n()
1337
 
        char = logformat_dict[key]
 
1340
        # XXX: Consider unknown fields have no whitespaces (ie, support for
 
1341
        # quotes)
 
1342
        char = logformat_dict.get(key, r'\S*')
1338
1343
        expensive_char = expensive_logformat_dict.get(key, char)
1339
1344
      line_regex += char
1340
1345
      expensive_line_regex += expensive_char