Commit fc65e2ab by Owo Sugiana

DEBUG log saat response

1 parent 344d6b06
0.1.1 04-11-2020
----------------
- DEBUG log saat response
0.1.0 13-9-2020 0.1.0 13-9-2020
--------------- ---------------
- Kali pertama, berasal dari paket iso8583-web agar lebih modular. - Kali pertama, berasal dari paket iso8583-web agar lebih modular.
import logging
log = logging.getLogger(__name__)
class Renderer: class Renderer:
def __init__(self, info): def __init__(self, info):
pass pass
...@@ -10,4 +16,7 @@ class Renderer: ...@@ -10,4 +16,7 @@ class Renderer:
ct = response.content_type ct = response.content_type
if ct == response.default_content_type: if ct == response.default_content_type:
response.content_type = 'text/csv' response.content_type = 'text/csv'
return str(value) s = str(value)
prefix = f'{request.client_addr} linkaja {id(request)}'
log.debug(f'{prefix} Send {[s]}')
return s
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!