Skip to content

Commit

Permalink
don't log the absence of accept as error
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Johnson <arachnid@notdot.net>
  • Loading branch information
jokin authored and Arachnid committed Mar 18, 2009
1 parent e858f52 commit a6cb34d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers/bloog/blog.py
Expand Up @@ -321,7 +321,7 @@ def render_article(handler, article):
try:
accept_list = handler.request.headers['Accept']
except KeyError:
logging.error("Had no accept header: %s", handler.request.headers)
logging.info("Had no accept header: %s", handler.request.headers)
accept_list = None
if accept_list and accept_list.split(',')[0] == 'application/json':
handler.response.headers['Content-Type'] = 'application/json'
Expand Down

0 comments on commit a6cb34d

Please sign in to comment.