From 90d7423eec074a0ed0af680c223180f8d7e1d4e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Wed, 4 Apr 2018 12:02:13 +0200 Subject: Add logging at market instance creation --- store.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'store.py') diff --git a/store.py b/store.py index b3ada45..2b5c18a 100644 --- a/store.py +++ b/store.py @@ -209,6 +209,17 @@ class ReportStore: "action": action, }) + def log_market(self, args, user_id, market_id, report_path, debug): + self.add_log({ + "type": "market", + "commit": "$Format:%H$", + "args": vars(args), + "user_id": user_id, + "market_id": market_id, + "report_path": report_path, + "debug": debug, + }) + class BalanceStore: def __init__(self, market): self.market = market -- cgit v1.2.3