Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Owo Sugiana
/
pyramid-linkaja
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit fc65e2ab
authored
Nov 06, 2020
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
DEBUG log saat response
1 parent
344d6b06
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletions
CHANGES.txt
pyramid_linkaja/renderer.py
CHANGES.txt
View file @
fc65e2a
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.
pyramid_linkaja/renderer.py
View file @
fc65e2a
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
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment