Skip to content

Commit

Permalink
Add log level #14 (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
GioF71 authored Jan 22, 2024
1 parent 1b739c7 commit 12c4afc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ ENV MINIDLNA_NOTIFY_INTERVAL ""

ENV MINIDLNA_STRICT_DLNA ""

ENV MINIDLNA_LOG_LEVEL ""

ENV USER_MODE ""

ENV MINIDLNA_ROOT_CONTAINER ""
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ MINIDLNA_NOTIFY_INTERVAL|Set the notify interval, in seconds. The default is 895
MINIDLNA_STRICT_DLNA|Strictly adhere to DLNA standards
MINIDLNA_ROOT_CONTAINER|Possible values are `.` (Default), `B` (Browse), `M` (Music), `V` (Vidoes), `P` (Pictures)
MINIDLNA_FORCE_SORT_CRITERIA|Always set SortCriteria to this value, regardless of the SortCriteria passed by the client e.g. force_sort_criteria=+upnp:class,+upnp:originalTrackNumber,+dc:title
MINIDLNA_LOG_LEVEL|Set this to change the verbosity of the information that is logged each section can use a different level: off, fatal, error, warn, info, or debug
USER_MODE|Set to `Y` or `YES` to enable user mode
PUID|User id, defaults to `1000`
PGID|Group id, defaults to `1000`
Expand Down Expand Up @@ -165,6 +166,7 @@ Just be careful to use the tag you have built.

Date|Major Changes
:---|:---
2024-01-22|Add support for log_level, see [#14](https://github.com/GioF71/minidlna-docker/issues/14)
2024-01-16|Fixed run script, see [#12](https://github.com/GioF71/minidlna-docker/issues/12)
2023-12-20|Allow docker user mode, see [#10](https://github.com/GioF71/minidlna-docker/issues/10)
2023-09-13|Switch to debian stable, see [#8](https://github.com/GioF71/minidlna-docker/issues/8)
Expand Down
4 changes: 4 additions & 0 deletions app/bin/run-minidlna.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ fi
echo "db_dir=/db" >> $CONFIG_FILE
echo "log_dir=/log" >> $CONFIG_FILE

if [ -n "${MINIDLNA_LOG_LEVEL}" ]; then
echo "log_level=${MINIDLNA_LOG_LEVEL}" >> $CONFIG_FILE
fi

if [ -n "${MINIDLNA_ROOT_CONTAINER}" ]; then
echo "root_container=${MINIDLNA_ROOT_CONTAINER}" >> $CONFIG_FILE
fi
Expand Down

0 comments on commit 12c4afc

Please sign in to comment.