commit a81b51facd1c077041dd39952d0bfc910a0b2ec2 (patch)
parent 60d76b4de27b74a9d3d45b8f0f1a71784bcbf4ce
Author: Alex Karle <alex@karle.co>
Date: Tue, 9 Jun 2020 19:55:47 -0400
bin: Enable debug logging in prod
We get such low traffic, I like to see how often people (or bots) are
hitting our main pages, not just when tables are created, etc.
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/bin/restart.sh b/bin/restart.sh
@@ -35,6 +35,8 @@ restart() {
else
export MOJO_MODE=production
fi
+ # Always log in debug, regardless of prod vs preprod
+ export MOJO_LOG_LEVEL=debug
printf "%s" "Starting new server... "
$HOME/${name}-el/gloat.pl daemon -l http://*:$port >> /var/log/gloat/$name.log 2>&1 &