Date: Thu, 10 Nov 2022 15:53:33 GMT From: Nuno Teixeira <eduardo@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 9e5e885d5a46 - main - sysutils/loki: Switch log level default from "info" to "warn" Message-ID: <202211101553.2AAFrXxo015970@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by eduardo: URL: https://cgit.FreeBSD.org/ports/commit/?id=9e5e885d5a463a13f59d8d9743ad107a968376de commit 9e5e885d5a463a13f59d8d9743ad107a968376de Author: Yonas Yanfa <yonas.yanfa@gmail.com> AuthorDate: 2022-11-10 15:51:13 +0000 Commit: Nuno Teixeira <eduardo@FreeBSD.org> CommitDate: 2022-11-10 15:53:18 +0000 sysutils/loki: Switch log level default from "info" to "warn" By default, the log level is set to "info", which happens to be very verbose. To avoid filling the log file and saving disk space, I recommend we set the default log level to "warn". PR: 267424 --- sysutils/loki/Makefile | 2 +- sysutils/loki/files/loki.in | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/sysutils/loki/Makefile b/sysutils/loki/Makefile index bbc0478b30f1..0b19caedb679 100644 --- a/sysutils/loki/Makefile +++ b/sysutils/loki/Makefile @@ -1,7 +1,7 @@ PORTNAME= loki DISTVERSIONPREFIX= v DISTVERSION= 2.6.1 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= sysutils PKGNAMEPREFIX= grafana- diff --git a/sysutils/loki/files/loki.in b/sysutils/loki/files/loki.in index c2e21fca5d1a..4400444818b1 100644 --- a/sysutils/loki/files/loki.in +++ b/sysutils/loki/files/loki.in @@ -22,6 +22,10 @@ # loki_logfile (string) # Set full path to log file # Default is "/var/log/loki/loki.log" +# loki_loglevel (string) +# Set log level. Only log messages with the given severity or above. +# Valid levels: [debug, info, warn, error] +# Default is "warn" # loki_args (string) # Set additional command line arguments # Default is "" @@ -38,6 +42,7 @@ load_rc_config $name : ${loki_group:="%%LOKI_GROUP%%"} : ${loki_config:="%%PREFIX%%/etc/loki.yaml"} : ${loki_logfile:="/var/log/loki/loki.log"} +: ${loki_loglevel:="warn"} pidfile="/var/run/${name}/${name}.pid" required_files="${loki_config}" @@ -47,6 +52,7 @@ command="/usr/sbin/daemon" command_args="-p ${pidfile} -t ${name} -o ${loki_logfile} \ ${procname} \ --config.file=${loki_config} \ + --log.level=${loki_loglevel} \ ${loki_args}" start_precmd="loki_start_precmd"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202211101553.2AAFrXxo015970>