add timestamp to error reply
This commit is contained in:
parent
99e32065b1
commit
ab21bb5e3f
@ -25,6 +25,7 @@ import sys
|
|||||||
import socket
|
import socket
|
||||||
import socketserver
|
import socketserver
|
||||||
import threading
|
import threading
|
||||||
|
import time
|
||||||
|
|
||||||
from secop.datatypes import StringType, BoolType
|
from secop.datatypes import StringType, BoolType
|
||||||
from secop.errors import SECoPError
|
from secop.errors import SECoPError
|
||||||
@ -133,6 +134,7 @@ class TCPRequestHandler(socketserver.BaseRequestHandler):
|
|||||||
if result[0].startswith(ERRORPREFIX) and not detailed_errors:
|
if result[0].startswith(ERRORPREFIX) and not detailed_errors:
|
||||||
# strip extra information
|
# strip extra information
|
||||||
result[2][2].clear()
|
result[2][2].clear()
|
||||||
|
result[2][2]['t'] = time.time()
|
||||||
self.send_reply(result)
|
self.send_reply(result)
|
||||||
|
|
||||||
def send_reply(self, data):
|
def send_reply(self, data):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user