diff -r 0b4d2bf9d306 -r 0c5554941179 src/OsecFS.py --- a/src/OsecFS.py Thu May 15 12:21:34 2014 +0200 +++ b/src/OsecFS.py Wed May 21 16:58:35 2014 +0200 @@ -174,9 +174,9 @@ try: response = httpPool.request_encode_body("POST", url, fields=data, retries=0) - except: + except Exception, e: LOG.error("Remote host not reachable") - LOG.error ("Exception: %s" %(sys.exc_info()[0])) + LOG.error ("Exception: %s" %(e,)) return if response.status == STATUS_CODE_OK: @@ -198,7 +198,7 @@ sendNotification ("critical", "Send log entry to opensecurity rest server failed.") def sendFileLog(filename, filesize, filehash, hashtype): - data = {"filename" : filename, "filesize" : filesize, "filehash" : filehash, "hashtype" : hashtype} + data = {"filename" : filename, "filesize" : "%s" %(filesize,), "filehash" : filehash, "hashtype" : hashtype} retval = sendDataToRest ("log", data) if (retval == False): sendLogNotPossibleNotification()