summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2023-12-31 06:45:32 +0100
committerAki <please@ignore.pl>2023-12-31 06:46:26 +0100
commit1df1bad5196369acfc64033e545f84911255c76f (patch)
tree82152567915fc58649163cc3aceede61b7171328
parent18c97d0f0b556cd29c9820ede2f9bddb06d39d34 (diff)
downloadrudone-1df1bad5196369acfc64033e545f84911255c76f.zip
rudone-1df1bad5196369acfc64033e545f84911255c76f.tar.gz
rudone-1df1bad5196369acfc64033e545f84911255c76f.tar.bz2
Added simple trace on entries being recorded
-rw-r--r--entry.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/entry.go b/entry.go
index 2a55130..04099ed 100644
--- a/entry.go
+++ b/entry.go
@@ -57,6 +57,7 @@ func InsertEntry(entry *Entry) error {
INSERT INTO entries (location, referrer, started_at, time_spent, scrolled_to)
VALUES (:location, :referrer, :started_at, :time_spent, :scrolled_to);`
_, err := db.NamedExec(query, entry)
+ log.Println("Entry recorded:", entry.Location)
return err
}