Show More
@@ -93,7 +93,7 b' class PostManager(models.Manager):' | |||||
93 | # last! |
|
93 | # last! | |
94 | last_edit_time=posting_time) |
|
94 | last_edit_time=posting_time) | |
95 |
|
95 | |||
96 |
logger = logging.getLogger('create |
|
96 | logger = logging.getLogger('boards.post.create') | |
97 |
|
97 | |||
98 | logger.info('Created post #%d with title "%s"' % (post.id, |
|
98 | logger.info('Created post #%d with title "%s"' % (post.id, | |
99 | post.title)) |
|
99 | post.title)) | |
@@ -131,7 +131,7 b' class PostManager(models.Manager):' | |||||
131 |
|
131 | |||
132 | post.delete() |
|
132 | post.delete() | |
133 |
|
133 | |||
134 |
logging.getLogger('delete |
|
134 | logging.getLogger('boards.post.delete').info('Deleted post #%d (%s)' % (post_id, post.get_title())) | |
135 |
|
135 | |||
136 | def delete_posts_by_ip(self, ip): |
|
136 | def delete_posts_by_ip(self, ip): | |
137 | """ |
|
137 | """ | |
@@ -429,7 +429,7 b' class Post(models.Model, Viewable):' | |||||
429 | }) |
|
429 | }) | |
430 | client.send() |
|
430 | client.send() | |
431 |
|
431 | |||
432 | logger = logging.getLogger('websocket') |
|
432 | logger = logging.getLogger('boards.post.websocket') | |
433 |
|
433 | |||
434 | logger.info('Sent post #{} to channel {}'.format(self.id, channel_name)) |
|
434 | logger.info('Sent post #{} to channel {}'.format(self.id, channel_name)) | |
435 |
|
435 |
@@ -168,10 +168,10 b' LOGGING = {' | |||||
168 | 'disable_existing_loggers': False, |
|
168 | 'disable_existing_loggers': False, | |
169 | 'formatters': { |
|
169 | 'formatters': { | |
170 | 'verbose': { |
|
170 | 'verbose': { | |
171 |
'format': '%(levelname)s %(asctime)s %(m |
|
171 | 'format': '%(levelname)s %(asctime)s %(name)s %(process)d %(thread)d %(message)s' | |
172 | }, |
|
172 | }, | |
173 | 'simple': { |
|
173 | 'simple': { | |
174 |
'format': '%(levelname)s %(asctime)s [%(m |
|
174 | 'format': '%(levelname)s %(asctime)s [%(name)s] %(message)s' | |
175 | }, |
|
175 | }, | |
176 | }, |
|
176 | }, | |
177 | 'filters': { |
|
177 | 'filters': { | |
@@ -242,4 +242,4 b' if DEBUG:' | |||||
242 | # FIXME Uncommenting this fails somehow. Need to investigate this |
|
242 | # FIXME Uncommenting this fails somehow. Need to investigate this | |
243 | #DEBUG_TOOLBAR_PANELS += ( |
|
243 | #DEBUG_TOOLBAR_PANELS += ( | |
244 | # 'debug_toolbar.panels.profiling.ProfilingDebugPanel', |
|
244 | # 'debug_toolbar.panels.profiling.ProfilingDebugPanel', | |
245 | #) No newline at end of file |
|
245 | #) |
General Comments 0
You need to be logged in to leave comments.
Login now