From 5f6aafb30973dbe26a6039686f25f58b56d33be7 Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Thu, 27 Apr 2023 11:59:09 -0700 Subject: [PATCH] libct: document process.LogLevel field This field used to hold a string representation of log level (like "debug" or "info"). Since commit 6c4a3b13d132aa4 this is now a string holding a numeric representation of log level (e.g. "4"). This was done in preparation to commit f1b703fc45dd6142, and simplifies things in a few places. Let's document it. Fixes: 6c4a3b13d132aa4 Signed-off-by: Kir Kolyshkin --- libcontainer/process.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libcontainer/process.go b/libcontainer/process.go index 8a5d340da..4de4a9e75 100644 --- a/libcontainer/process.go +++ b/libcontainer/process.go @@ -79,6 +79,9 @@ type Process struct { ops processOperations + // LogLevel is a string containing a numeric representation of the current + // log level (i.e. "4", but never "info"). It is passed on to runc init as + // _LIBCONTAINER_LOGLEVEL environment variable. LogLevel string // SubCgroupPaths specifies sub-cgroups to run the process in.