Skip to content

Commit

Permalink
improve profile file names
Browse files Browse the repository at this point in the history
  • Loading branch information
ondratu committed Nov 22, 2023
1 parent d4553cf commit c7add5b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion poorwsgi/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -1213,7 +1213,9 @@ def wrapper(rval):
rval.append(self.__original_request__(env, start_response))

rval = []
uri_dump = (self.__dump + env.get('PATH_INFO').replace('/', '_') +
uri_dump = (self.__dump + "_" + env.get('REQUEST_METHOD') +
env.get('PATH_INFO').replace('/', '_') +
"." + str(time()) +
'.profile')
log.info('Generate %s', uri_dump)
self.__runctx('wrapper(rval)', globals(), locals(), filename=uri_dump)
Expand Down

0 comments on commit c7add5b

Please sign in to comment.