From 70a7f396caed01beaae0c4f23cdbf89b55a7e1af Mon Sep 17 00:00:00 2001 From: Pavel Kubelun Date: Sun, 4 Feb 2018 15:02:22 +0300 Subject: [PATCH] minidlna: decrease minidlna log verbosity Some clients do not close connections properly or do not keep it alive, so each time the connection times out a corresponding log entry is written into a log. These messages may spam the log really hard. This may be an issue if log is placed on internal flash - it may prematurely wear a flash chip. This also prevents hdd from spinning down if the log is located on hdd and the dlna capable tv is online. Set the log level to "error" by default. MAN: 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 Example log_level=general,artwork,database,inotify,scanner,metadata,http,ssdp,tivo=warn Signed-off-by: Pavel Kubelun --- multimedia/minidlna/Makefile | 2 +- multimedia/minidlna/files/minidlna.init | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/multimedia/minidlna/Makefile b/multimedia/minidlna/Makefile index 5b84a8cbb5..fc80e56660 100644 --- a/multimedia/minidlna/Makefile +++ b/multimedia/minidlna/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=minidlna PKG_VERSION:=1.2.1 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE_URL:=@SF/minidlna PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz diff --git a/multimedia/minidlna/files/minidlna.init b/multimedia/minidlna/files/minidlna.init index 79be8f625a..c894186d34 100644 --- a/multimedia/minidlna/files/minidlna.init +++ b/multimedia/minidlna/files/minidlna.init @@ -57,6 +57,7 @@ minidlna_create_config() { minidlna_cfg_addstr $cfg friendly_name minidlna_cfg_addstr $cfg db_dir minidlna_cfg_addstr $cfg log_dir + minidlna_cfg_addstr $cfg log_level 'error' minidlna_cfg_addbool $cfg inotify '1' minidlna_cfg_addbool $cfg enable_tivo '0' minidlna_cfg_addbool $cfg wide_links '0'