Show More
@@ -131,7 +131,7 b' def main(global_config, **settings):' | |||
|
131 | 131 | config.include('appenlight_client.ext.pyramid_tween') |
|
132 | 132 | config.include('ziggurat_foundations.ext.pyramid.sign_in') |
|
133 | 133 | config.registry.es_conn = pyelasticsearch.ElasticSearch( |
|
134 | settings['elasticsearch.nodes']) | |
|
134 | aslist(settings['elasticsearch.nodes'])) | |
|
135 | 135 | config.registry.redis_conn = redis.StrictRedis.from_url( |
|
136 | 136 | settings['redis.url']) |
|
137 | 137 |
@@ -98,7 +98,7 b' class Log(Base, BaseModel):' | |||
|
98 | 98 | return None |
|
99 | 99 | |
|
100 | 100 | to_hash = '{}_{}_{}'.format(self.resource_id, self.primary_key, |
|
101 |
|
|
|
101 | self.namespace) | |
|
102 | 102 | return hashlib.sha1(to_hash.encode('utf8')).hexdigest() |
|
103 | 103 | |
|
104 | 104 | def es_doc(self): |
General Comments 0
You need to be logged in to leave comments.
Login now