add timestamp to error reply

This commit is contained in:
l_samenv 2020-09-08 13:32:18 +02:00
parent 99e32065b1
commit ab21bb5e3f

View File

@ -25,6 +25,7 @@ import sys
import socket
import socketserver
import threading
import time
from secop.datatypes import StringType, BoolType
from secop.errors import SECoPError
@ -133,6 +134,7 @@ class TCPRequestHandler(socketserver.BaseRequestHandler):
if result[0].startswith(ERRORPREFIX) and not detailed_errors:
# strip extra information
result[2][2].clear()
result[2][2]['t'] = time.time()
self.send_reply(result)
def send_reply(self, data):