18 Commits

Author SHA1 Message Date
Danny van Kooten
da6ffde2ea speed up host & pathname migration by using UNION. perform VACUUM for SQLite migrations. 2018-11-14 12:40:01 +01:00
Danny van Kooten
2ca1e0f36e switch to hourly storage for stats.
- allows showing an hourly chart on the 'today' view
- fixes timezone issues when in 'today' view #134
- increases size of stats tables by factor 24, but that should be less of an issue after dbcadcd73772258f2d2fd781673e559d5ed74dba
2018-11-13 15:23:18 +01:00
Danny van Kooten
cb25b267da show only database name and maybe host when logging successful db connection. #174 2018-11-02 12:30:34 +01:00
Christopher "Chief" Najewicz
acd182689b Obfuscate DSN password when logging connection details, fixes #174 (#176) 2018-10-30 20:10:21 +01:00
Danny van Kooten
876309ae59 clean-up sqlstore pkg 2018-10-05 14:34:39 +02:00
Danny van Kooten
927c50b419 add & delete sites through api 2018-10-03 15:27:36 +02:00
Vincent Boutour
e712f0fcdd
Adding /health endpoint and using it in container 2018-09-17 17:20:48 +02:00
Charley DAVID
98970057a2
Add support for FATHOM_DATABASE_URL 2018-07-31 08:41:08 -03:00
Danny van Kooten
658581b744 show prettier error msg when connecting to database fails 2018-07-27 08:52:53 +02:00
Danny van Kooten
1fea0dc66f return error from datastore.Close func 2018-07-15 09:20:07 +02:00
Danny
e795eb1ac1 print some info regardless of log level 2018-06-13 10:10:56 +02:00
Danny
a72df6274f generate sql statement dynamically 2018-06-01 13:21:54 +02:00
Danny
c9213b0b72 set pipe concat mode when using mysql 2018-06-01 11:44:11 +02:00
Danny
df7496a80d add known_durations column and use that for calculating duration averages, instead of total # pageviews 2018-05-28 15:31:40 +02:00
Danny
eddb1e9566 write info level after connecting to database 2018-05-25 14:12:32 +02:00
Danny
fc35d68926 output log messages during bootstrap, eg with config file location 2018-05-23 09:03:42 +02:00
Danny
7c3cecad09 use errorf log when database migrations fail 2018-05-22 16:20:43 +02:00
Danny
c30e5b3120 introduce datastore interface & stop relying on package var to retrieve db conn. relates to #29 2018-05-15 13:30:37 +02:00