Skip to content

Commit 2476fa4

Browse files
authored
Merge pull request #221 from tobami/normal-logging-level
Normal logging level
2 parents b092bd9 + 46f837c commit 2476fa4

File tree

6 files changed

+11
-23
lines changed

6 files changed

+11
-23
lines changed

.travis.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,16 @@ branches:
66
only:
77
- master
88
env:
9-
- DJANGO_VERSION=1.8.17
10-
- DJANGO_VERSION=1.9.12
9+
global:
10+
- DJANGO_SETTINGS_MODULE=sample_project.settings
11+
matrix:
12+
- DJANGO_VERSION=1.8.18
13+
- DJANGO_VERSION=1.9.13
1114
install:
1215
- pip install flake8
1316
- pip install -q Django==$DJANGO_VERSION
1417
- python setup.py install
1518
before_script:
1619
flake8 codespeed
1720
script:
18-
- python setup.py test
1921
- python manage.py test codespeed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Codespeed
22
[![Build Status](https://travis-ci.org/tobami/codespeed.png?branch=master)](https://travis-ci.org/tobami/codespeed)
3+
[![PyPI version](https://img.shields.io/pypi/v/codespeed.svg)](https://pypi.python.org/pypi/codespeed)
34

45
Codespeed is a web application to monitor and analyze the performance of your code.
56

requirements.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
Django>=1.6,<1.9
1+
Django>=1.6,<1.10
22
isodate>=0.4.7,<0.6
3-
matplotlib>=1.4.3
3+
matplotlib>=1.4.3,<2.0

sample_project/client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,6 @@ def save_to_speedcenter(url=None, project=None, commitid=None, executable=None,
117117
try:
118118
save_to_speedcenter(**kwargs)
119119
sys.exit(0)
120-
except StandardError, e:
120+
except StandardError as e:
121121
logging.error("Error saving results: %s", e)
122122
sys.exit(1)

sample_project/settings.py

-15
Original file line numberDiff line numberDiff line change
@@ -52,21 +52,6 @@
5252
'django.contrib.messages.middleware.MessageMiddleware',
5353
)
5454

55-
if DEBUG:
56-
import traceback
57-
import logging
58-
59-
# Define a class that logs unhandled errors
60-
class LogUncatchedErrors:
61-
def process_exception(self, request, exception):
62-
logging.error("Unhandled Exception on request for %s\n%s",
63-
request.build_absolute_uri(), traceback.format_exc())
64-
# And add it to the middleware classes
65-
MIDDLEWARE_CLASSES += ('sample_project.settings.LogUncatchedErrors',)
66-
67-
# set shown level of logging output to debug
68-
logging.basicConfig(level=logging.DEBUG)
69-
7055
ROOT_URLCONF = '{0}.urls'.format(TOPDIR)
7156

7257
TEMPLATE_DIRS = (

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
url='https://github.com/tobami/codespeed',
99
download_url="https://github.com/tobami/codespeed/tags",
1010
license='GNU Lesser General Public License version 2.1',
11-
keywords=["benchmarking", "visualization"],
12-
install_requires=['django>=1.6,<1.9', 'isodate>=0.4.7,<0.6', 'matplotlib>=1.4.3'],
11+
keywords=['benchmarking', 'visualization'],
12+
install_requires=['django>=1.6,<1.10', 'isodate>=0.4.7,<0.6', 'matplotlib>=1.4.3,<2.0'],
1313
packages=find_packages(exclude=['ez_setup', 'sample_project']),
1414
description='A web application to monitor and analyze the performance of your code',
1515
include_package_data=True,

0 commit comments

Comments
 (0)