mirror of
https://github.com/evennia/evennia.git
synced 2026-03-23 00:06:30 +01:00
Adds more verbose error message and logs traceback when errors encountered at init.
This commit is contained in:
parent
13eb713c20
commit
eaa2b534ce
1 changed files with 2 additions and 2 deletions
|
|
@ -35,10 +35,10 @@ class Throttle(object):
|
|||
try:
|
||||
self.storage = caches['throttle']
|
||||
except Exception as e:
|
||||
logger.log_err(f'Throttle: {e}')
|
||||
logger.log_trace("Throttle: Errors encountered; using default cache.")
|
||||
self.storage = caches['default']
|
||||
|
||||
self.name = kwargs.get('name', 'ip-throttle')
|
||||
self.name = kwargs.get('name', 'undefined-throttle')
|
||||
self.limit = kwargs.get("limit", 5)
|
||||
self.cache_size = kwargs.get('cache_size', self.limit)
|
||||
self.timeout = kwargs.get("timeout", 5 * 60)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue