19
19
20
20
"""
21
21
22
- __version__ = '3.1.dev '
22
+ __version__ = '3.1'
23
23
__date__ = '2019-10-18'
24
24
__author__ = "Apama community"
25
25
__license__ = "Apache 2.0"
@@ -456,16 +456,16 @@ def processFile(self, file):
456
456
if lastpercent < threshold :
457
457
self .handleFilePercentComplete (file = file , percent = threshold )
458
458
self .handleFileFinished (file = file )
459
+
460
+ duration = time .time ()- duration
461
+ if duration > 10 :
462
+ log .info ('Completed analysis of %s in %s' , os .path .basename (self .currentpath ), (('%d seconds' % duration ) if duration < 120 else ('%0.1f minutes' % (duration / 60 ))))
459
463
460
464
self .currentlineno = - 1
461
465
self .__currentfilehandle = None
462
466
self .currentpath , self .currentpathbytes = None , 0
463
467
self .currentfile = file
464
468
465
- duration = time .time ()- duration
466
- if duration > 10 :
467
- log .info ('Completed analysis of %s in %s' , os .path .basename (self .currentpath ), (('%d seconds' % duration ) if duration < 120 else ('%0.1f minutes' % (duration / 60 ))))
468
-
469
469
def handleFileFinished (self , file , ** extra ):
470
470
for w in self .writers :
471
471
w .closeFile ()
@@ -1464,6 +1464,7 @@ def main(self, args):
1464
1464
archiveextensions ['.xz' ] = lzma
1465
1465
archiveextensions ['.bz2' ] = bz2
1466
1466
archiveextensions ['.gzip' ] = gzip
1467
+ archiveextensions ['.gz' ] = gzip
1467
1468
1468
1469
logpaths = set ()
1469
1470
def raiseOnError (e ):
@@ -1477,7 +1478,7 @@ def addDirectory(root):
1477
1478
dirnames .append ('logs' )
1478
1479
continue
1479
1480
for fn in filenames :
1480
- if (fn .endswith ('.log' ) or fn .endswith ('.out' )) and not fn .endswith ('.input.log' ) and not fn .startswith ('iaf' ):
1481
+ if (fn .endswith ('.log' ) or fn .endswith ('.out' ) or fn . startswith ( 'apama-ctrl-' ) ) and not fn .endswith ('.input.log' ) and not fn .startswith ('iaf' ):
1481
1482
logpaths .add (dirpath + os .sep + fn )
1482
1483
else :
1483
1484
log .info ('Ignoring file (filename doesn\' t look like a correlator log): %s' , dirpath + os .sep + fn )
0 commit comments