aboutsummaryrefslogtreecommitdiff
path: root/store.py
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-04-04 12:02:13 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-04-04 12:38:28 +0200
commit90d7423eec074a0ed0af680c223180f8d7e1d4e6 (patch)
tree9180ce9db30705eeea1d0139c0f580d5b09e15e7 /store.py
parent341a4b07e8c205711fff0e93dd3679708828a961 (diff)
downloadTrader-90d7423eec074a0ed0af680c223180f8d7e1d4e6.tar.gz
Trader-90d7423eec074a0ed0af680c223180f8d7e1d4e6.tar.zst
Trader-90d7423eec074a0ed0af680c223180f8d7e1d4e6.zip
Add logging at market instance creation
Diffstat (limited to 'store.py')
-rw-r--r--store.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/store.py b/store.py
index b3ada45..2b5c18a 100644
--- a/store.py
+++ b/store.py
@@ -209,6 +209,17 @@ class ReportStore:
209 "action": action, 209 "action": action,
210 }) 210 })
211 211
212 def log_market(self, args, user_id, market_id, report_path, debug):
213 self.add_log({
214 "type": "market",
215 "commit": "$Format:%H$",
216 "args": vars(args),
217 "user_id": user_id,
218 "market_id": market_id,
219 "report_path": report_path,
220 "debug": debug,
221 })
222
212class BalanceStore: 223class BalanceStore:
213 def __init__(self, market): 224 def __init__(self, market):
214 self.market = market 225 self.market = market