mirror of
https://github.com/domainaware/parsedmarc.git
synced 2026-10-18 09:38:11 +00:00
More logging fixes
This commit is contained in:
1 parent
d25d01a230
commit
ee97a76654
1 file changed
+1
-1
@@ -182,12 +182,12 @@ def create_indexes(names=None, settings=None):
|
||||
settings (dict): Index settings
|
||||
|
||||
"""
|
||||
logger.debug("Creating Elasticsearch indexes")
|
||||
if names is None:
|
||||
names = ["dmarc_aggregate", "dmarc_forensic"]
|
||||
for name in names:
|
||||
index = Index(name)
|
||||
if not index.exists():
|
||||
logger.debug("Creating Elasticsearch index: {0{".format(name))
|
||||
if settings:
|
||||
index.put_settings(settings)
|
||||
index.create()
|
||||
|
||||
Reference in new issue
Block a user