diff options
author | Yorhel <git@yorhel.nl> | 2020-05-28 13:51:53 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2020-05-28 14:02:44 +0200 |
commit | 002f165ed4823b7563e7443526d907d27b5b431b (patch) | |
tree | 5b38e850c47535587469586ac039ddd4211ad1c4 /lib/VNDB | |
parent | f7d7e3576a68f1de6d2eec2ef4f8f7a4c982372f (diff) |
Add sampling-based trace logging
This is intended to get some stats about resource usage (which
pages/modules are requested often, how much time do they take, etc) to
reduce server load and find pages to optimize, and to track usage of Elm
modules in order to see how many pageviews actually need them so that I
can (hopefully) create smaller JS bundles for most pages.
The logging *should* not include any personally identifiable
information, but paths and query strings could still reveal more
information than necessary. Trace logging is intended to only be enabled
for short periods of time or with low sample rates in order to avoid
slowing down the server with too much logging. I also don't intend to
keep the data around for longer than necessary.
I'm not providing SQL migration scripts for these, this feature is going
to require custom querying anyway.
Diffstat (limited to 'lib/VNDB')
-rw-r--r-- | lib/VNDB/Config.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/VNDB/Config.pm b/lib/VNDB/Config.pm index 1a426030..b187251a 100644 --- a/lib/VNDB/Config.pm +++ b/lib/VNDB/Config.pm @@ -27,6 +27,7 @@ my $config = { board_edit_time => 7*24*3600, # Time after which posts become immutable poll_options => 20, # max number of options in discussion board polls graphviz_path => '/usr/bin/dot', + trace_log => 0, dlsite_url => 'https://www.dlsite.com/%s/work/=/product_id/%%s.html', denpa_url => 'https://denpasoft.com/products/%s', |