Skip to content
Snippets Groups Projects
Verified Commit e88d2fbc authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

feat: allow setting loglevel via env

parent 3ef44f41
No related merge requests found
Pipeline #2888 passed
......@@ -62,8 +62,6 @@ COPY src/rtorrent.rc /rtorrent.rc
COPY entrypoint.sh /entrypoint.sh
ENV RT_TRACKER_UDP="yes"
ENV RT_DHT_MODE="disable"
ENV RT_DHT_PORT=49160
ENV RT_PROTO_PEX="no"
ENV RT_MAX_UP=100
ENV RT_MAX_UP_GLOBAL=250
......@@ -73,9 +71,7 @@ ENV RT_MIN_PEERS_SEED=30
ENV RT_MAX_PEERS_SEED=80
ENV RT_TRACKERS_WANT=80
ENV RT_MEMORY_MAX="1800M"
ENV RT_DAEMON="true"
ENV RT_XMLRPC_BIND="0.0.0.0"
ENV RT_XMLRPC_PORT="5000"
ENV RT_LOGLEVEL="info"
VOLUME ["/data"]
VOLUME ["/tmp"]
......
......@@ -75,5 +75,5 @@ network.scgi.open_port = 0.0.0.0:5000
# Groups = connection_* dht_* peer_* rpc_* storage_* thread_* tracker_* torrent_*
print = (cat, "Logging to ", (cfg.logfile))
log.open_file = "log", (cfg.logfile)
log.add_output = "info", "log"
log.add_output = (system.env,RT_LOGLEVEL), "log"
##log.add_output = "tracker_debug", "log"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment