Skip to content
Permalink
Browse files
Fix logging in provider
  • Loading branch information
brogand93 committed Jun 4, 2014
1 parent 914c54b commit 876275eb233627eece17bcce4f5e1ace67a984c0
Showing 1 changed file with 2 additions and 4 deletions.
@@ -1,13 +1,12 @@
import json
import logging
from requests import Response
from cStringIO import StringIO
try:
from werkzeug.exceptions import Unauthorized
except ImportError:
Unauthorized = Exception
from . import utils

from gstack import app

class Provider(object):

@@ -19,8 +18,7 @@ def _handle_exception(self, exc):
:param exc: Exception to process.
:type exc: Exception
"""
logger = logging.getLogger(__name__)
logger.exception(exc)
app.logger.debug(exc)

def _make_response(self, body='', headers=None, status_code=200):
"""Return a response object from the given parameters.

0 comments on commit 876275e

Please sign in to comment.