diff --git a/glasnost-ctl.py b/glasnost-ctl.py index f6e6c234..ceae326c 100755 --- a/glasnost-ctl.py +++ b/glasnost-ctl.py @@ -98,7 +98,10 @@ def doStart(): if not logDir: continue fileName = os.path.join(logDir, '%s.log' % server) - fileInstance = open(fileName,'r') + try: + fileInstance = open(fileName,'r') + except IOError: + continue print ''.join(fileInstance.readlines()[-10:]) fileInstance.close() print ' done.'