summaryrefslogtreecommitdiff
path: root/api.py
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-03-08 20:09:08 +0100
committerschneefux <schneefux+commit@schneefux.xyz>2017-03-08 20:09:08 +0100
commit60cb876a25c916ac37b6f08b20bfbbda2a2d68c1 (patch)
treed6c4d35f58f8146145f66a477bd70e39ce2be6e2 /api.py
parent9cfc1067fdd607de73327d65d44a6bbae90e9469 (diff)
downloadapigrabber-60cb876a25c916ac37b6f08b20bfbbda2a2d68c1.tar.gz
apigrabber-60cb876a25c916ac37b6f08b20bfbbda2a2d68c1.zip
log: inserts with playername
Diffstat (limited to 'api.py')
-rw-r--r--api.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/api.py b/api.py
index f436b57..692c931 100644
--- a/api.py
+++ b/api.py
@@ -56,8 +56,8 @@ class Apigrabber(joblib.worker.Worker):
async with con.transaction():
matchids = await con.fetch(
self._insertquery, json.dumps(data))
- logging.debug("%s: inserted %s matches from API into database",
- jobid, len(matchids))
+ logging.info("%s: inserted %s matches for player '%s' from API into database",
+ jobid, len(matchids), playername)
payloads = [{
"id": mat["id"],
"playername": playername