disable logging by default

This commit is contained in:
Gwenhael Le Moine 2021-05-12 17:27:25 +02:00
parent a80fcfc8f7
commit 71574065fe
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -4,12 +4,13 @@ require "./ledger"
ENV["CREDGER_CURRENCY"] ||= ""
ENV["CREDGER_SEPARATOR"] ||= ","
ENV["CREDGER_PORT"] ||= "3000"
ENV["CREDGER_VERBOSE"] ||= "false"
WD = File.dirname( Process.executable_path.to_s )
public_folder( "#{WD}/public" )
logging ENV["CREDGER_VERBOSE"] == "true"
# Matches GET "http://host:port/"
get "/" do |env|