Commit 2476fa44 authored by Miquel Torres's avatar Miquel Torres Committed by GitHub
Browse files

Merge pull request #221 from tobami/normal-logging-level

Normal logging level
parents b092bd97 46f837cb
......@@ -6,8 +6,11 @@ branches:
only:
- master
env:
- DJANGO_VERSION=1.8.17
- DJANGO_VERSION=1.9.12
global:
- DJANGO_SETTINGS_MODULE=sample_project.settings
matrix:
- DJANGO_VERSION=1.8.18
- DJANGO_VERSION=1.9.13
install:
- pip install flake8
- pip install -q Django==$DJANGO_VERSION
......@@ -15,5 +18,4 @@ install:
before_script:
flake8 codespeed
script:
- python setup.py test
- python manage.py test codespeed
# Codespeed
[![Build Status](https://travis-ci.org/tobami/codespeed.png?branch=master)](https://travis-ci.org/tobami/codespeed)
[![PyPI version](https://img.shields.io/pypi/v/codespeed.svg)](https://pypi.python.org/pypi/codespeed)
Codespeed is a web application to monitor and analyze the performance of your code.
......
Django>=1.6,<1.9
Django>=1.6,<1.10
isodate>=0.4.7,<0.6
matplotlib>=1.4.3
matplotlib>=1.4.3,<2.0
......@@ -117,6 +117,6 @@ if __name__ == "__main__":
try:
save_to_speedcenter(**kwargs)
sys.exit(0)
except StandardError, e:
except StandardError as e:
logging.error("Error saving results: %s", e)
sys.exit(1)
......@@ -52,21 +52,6 @@ MIDDLEWARE_CLASSES = (
'django.contrib.messages.middleware.MessageMiddleware',
)
if DEBUG:
import traceback
import logging
# Define a class that logs unhandled errors
class LogUncatchedErrors:
def process_exception(self, request, exception):
logging.error("Unhandled Exception on request for %s\n%s",
request.build_absolute_uri(), traceback.format_exc())
# And add it to the middleware classes
MIDDLEWARE_CLASSES += ('sample_project.settings.LogUncatchedErrors',)
# set shown level of logging output to debug
logging.basicConfig(level=logging.DEBUG)
ROOT_URLCONF = '{0}.urls'.format(TOPDIR)
TEMPLATE_DIRS = (
......
......@@ -8,8 +8,8 @@ setup(
url='https://github.com/tobami/codespeed',
download_url="https://github.com/tobami/codespeed/tags",
license='GNU Lesser General Public License version 2.1',
keywords=["benchmarking", "visualization"],
install_requires=['django>=1.6,<1.9', 'isodate>=0.4.7,<0.6', 'matplotlib>=1.4.3'],
keywords=['benchmarking', 'visualization'],
install_requires=['django>=1.6,<1.10', 'isodate>=0.4.7,<0.6', 'matplotlib>=1.4.3,<2.0'],
packages=find_packages(exclude=['ez_setup', 'sample_project']),
description='A web application to monitor and analyze the performance of your code',
include_package_data=True,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment