mirror of
				https://github.com/django/daphne.git
				synced 2025-10-31 15:57:25 +03:00 
			
		
		
		
	[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
		
							parent
							
								
									eb820e3fed
								
							
						
					
					
						commit
						8cb79b4217
					
				|  | @ -16,12 +16,11 @@ class AccessLogGenerator: | ||||||
|             formatter = logging.Formatter( |             formatter = logging.Formatter( | ||||||
|                 '%(host)s %(ident)s %(user)s [%(asctime)s] "%(message)s" ' |                 '%(host)s %(ident)s %(user)s [%(asctime)s] "%(message)s" ' | ||||||
|                 "%(status)s %(length)s", |                 "%(status)s %(length)s", | ||||||
|                 "%d/%b/%Y:%H:%M:%S" |                 "%d/%b/%Y:%H:%M:%S", | ||||||
|             ) |             ) | ||||||
|             handler.setFormatter(fmt=formatter) |             handler.setFormatter(fmt=formatter) | ||||||
|             logger.addHandler(handler) |             logger.addHandler(handler) | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
|     def __call__(self, protocol, action, details): |     def __call__(self, protocol, action, details): | ||||||
|         """ |         """ | ||||||
|         Called when an action happens; use it to generate log entries. |         Called when an action happens; use it to generate log entries. | ||||||
|  | @ -65,8 +64,8 @@ class AccessLogGenerator: | ||||||
|         self, host, request, details, status=None, length=None, ident=None, user=None |         self, host, request, details, status=None, length=None, ident=None, user=None | ||||||
|     ): |     ): | ||||||
|         """ |         """ | ||||||
|         Writes an access log.  If a file is specified, an NCSA-style entry to the log file  |         Writes an access log.  If a file is specified, an NCSA-style entry to the log file | ||||||
|         (some liberty is taken with what the entries are for non-HTTP).  The format can be  |         (some liberty is taken with what the entries are for non-HTTP).  The format can be | ||||||
|         overriden with logging configuration for 'daphne.access' |         overriden with logging configuration for 'daphne.access' | ||||||
|         """ |         """ | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user