david / django-roa (http://welldev.org/)
Turn your models into remote resources that you can access through Django's ORM. ROA stands for Resource Oriented Architecture.
| commit 130: | 2616a61bffb2 |
| parent 129: | 6fb5496bda07 |
| branch: | default |
Switch to basicConfig logging handler, avoid redudancy of messages
11 months ago
Changed (Δ612 bytes):
raw changeset »
examples/django_roa_client/settings.py (1 lines added, 9 lines removed)
examples/django_roa_server/settings.py (1 lines added, 8 lines removed)
examples/twitter_roa/settings.py (1 lines added, 9 lines removed)
Up to file-list examples/django_roa_client/settings.py:
| … | … | @@ -74,12 +74,4 @@ ROA_ARGS_NAMES_MAPPING = { |
74 |
74 |
|
75 |
75 |
## Logging settings |
76 |
76 |
import logging |
77 |
# create logger |
|
78 |
logger = logging.getLogger("django_roa") |
|
79 |
logger.setLevel(logging.DEBUG) |
|
80 |
# create console handler and set level to debug |
|
81 |
ch = logging.StreamHandler() |
|
82 |
ch.setLevel(logging.DEBUG) |
|
83 |
ch.setFormatter(logging.Formatter("%(name)s - %(message)s")) |
|
84 |
logger.addHandler(ch) |
|
85 |
||
77 |
logging.basicConfig(level=logging.DEBUG, format="%(name)s - %(message)s") |
Up to file-list examples/django_roa_server/settings.py:
| … | … | @@ -47,11 +47,4 @@ PISTON_DISPLAY_ERRORS = False |
47 |
47 |
|
48 |
48 |
## Logging settings |
49 |
49 |
import logging |
50 |
# create logger |
|
51 |
logger = logging.getLogger("django_roa_server") |
|
52 |
logger.setLevel(logging.DEBUG) |
|
53 |
# create console handler and set level to debug |
|
54 |
ch = logging.StreamHandler() |
|
55 |
ch.setLevel(logging.DEBUG) |
|
56 |
ch.setFormatter(logging.Formatter("%(name)s - %(message)s")) |
|
57 |
logger.addHandler(ch) |
|
50 |
logging.basicConfig(level=logging.DEBUG, format="%(name)s - %(message)s") |
Up to file-list examples/twitter_roa/settings.py:
| … | … | @@ -59,12 +59,4 @@ ROA_ARGS_NAMES_MAPPING = { |
59 |
59 |
|
60 |
60 |
## Logging settings |
61 |
61 |
import logging |
62 |
# create logger |
|
63 |
logger = logging.getLogger("django_roa") |
|
64 |
logger.setLevel(logging.DEBUG) |
|
65 |
# create console handler and set level to debug |
|
66 |
ch = logging.StreamHandler() |
|
67 |
ch.setLevel(logging.DEBUG) |
|
68 |
ch.setFormatter(logging.Formatter("%(name)s - %(message)s")) |
|
69 |
logger.addHandler(ch) |
|
70 |
||
62 |
logging.basicConfig(level=logging.DEBUG, format="%(name)s - %(message)s") |
