diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-04-04 12:02:13 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-04-04 12:38:28 +0200 |
commit | 90d7423eec074a0ed0af680c223180f8d7e1d4e6 (patch) | |
tree | 9180ce9db30705eeea1d0139c0f580d5b09e15e7 /store.py | |
parent | 341a4b07e8c205711fff0e93dd3679708828a961 (diff) | |
download | Trader-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.py | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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 | |||
212 | class BalanceStore: | 223 | class BalanceStore: |
213 | def __init__(self, market): | 224 | def __init__(self, market): |
214 | self.market = market | 225 | self.market = market |