aboutsummaryrefslogtreecommitdiff
path: root/modules/role/templates/cryptoportfolio
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-05-13 15:41:16 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-05-13 15:41:16 +0200
commita859ab30660104d25485824afa1c23de454bb5ed (patch)
tree2805da543649337d495f6640d2effd1b767ac7d7 /modules/role/templates/cryptoportfolio
parent123ee097b8c8f69e8cade9f618585065d3fc7948 (diff)
downloadPuppet-a859ab30660104d25485824afa1c23de454bb5ed.tar.gz
Puppet-a859ab30660104d25485824afa1c23de454bb5ed.tar.zst
Puppet-a859ab30660104d25485824afa1c23de454bb5ed.zip
wait for journal rather than polling
Diffstat (limited to 'modules/role/templates/cryptoportfolio')
-rw-r--r--modules/role/templates/cryptoportfolio/api_logger.py.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/role/templates/cryptoportfolio/api_logger.py.erb b/modules/role/templates/cryptoportfolio/api_logger.py.erb
index 3fb14a0..ad296e8 100644
--- a/modules/role/templates/cryptoportfolio/api_logger.py.erb
+++ b/modules/role/templates/cryptoportfolio/api_logger.py.erb
@@ -50,4 +50,4 @@ while True:
50 lines = [entry["MESSAGE"] for entry in list(j)] 50 lines = [entry["MESSAGE"] for entry in list(j)]
51 if len(lines) > 0: 51 if len(lines) > 0:
52 send_to_discord("\n".join(lines)) 52 send_to_discord("\n".join(lines))
53 time.sleep(3) 53 j.wait()