]> www.average.org Git - loctrkd.git/blobdiff - gps303/evstore.py
Use command line args and config more
[loctrkd.git] / gps303 / evstore.py
index 1b1ae2dc398f29063ffcddf2716da7b2424de01c..360ab359505c7a141cdf6a5857d7dbcc14c86b53 100644 (file)
@@ -18,6 +18,7 @@ SCHEMA = """create table if not exists events (
 
 def initdb(dbname):
     global DB
+    log.info("Using Sqlite3 database \"%s\"", dbname)
     DB = connect(dbname)
     DB.execute(SCHEMA)
 
@@ -30,7 +31,6 @@ def stow(clntaddr, timestamp, imei, proto, payload):
             (str(clntaddr), timestamp, imei, proto, payload),
         )
     )
-    log.debug("inserting %s", parms)
     DB.execute(
         """insert or ignore into events
                 (timestamp, imei, clntaddr, proto, payload)