Dolda2000 GitWeb
/
ashd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
python: Pass client address and port in perf request info.
[ashd.git]
/
python3
/
ashd
/
perf.py
diff --git
a/python3/ashd/perf.py
b/python3/ashd/perf.py
index
0d1e7aa
..
c4b0950
100644
(file)
--- a/
python3/ashd/perf.py
+++ b/
python3/ashd/perf.py
@@
-17,6
+17,8
@@
if pdm:
self.method = env.get("REQUEST_METHOD")
self.uri = env.get("REQUEST_URI")
self.host = env.get("HTTP_HOST")
self.method = env.get("REQUEST_METHOD")
self.uri = env.get("REQUEST_URI")
self.host = env.get("HTTP_HOST")
+ self.remoteaddr = env.get("REMOTE_ADDR")
+ self.remoteport = env.get("REMOTE_PORT")
class reqfinish(pdm.perf.finishevent):
def __init__(self, start, aborted, status):
class reqfinish(pdm.perf.finishevent):
def __init__(self, start, aborted, status):