chiark / gitweb /
logging env vars: Rename (tidying) and document
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 3 May 2021 12:06:21 +0000 (13:06 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 3 May 2021 12:06:21 +0000 (13:06 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
CHANGELOG.md
src/bin/otter.rs
src/bin/otterlib.rs

index 3ef6d12b430b196561a99903c2ab6d62f3e43c5c..ca8fa1ae349a00a5367f7a58f1cf249ad2684865 100644 (file)
@@ -5,7 +5,8 @@ Version UNRELEASED
    Manipulation Rummy.
  * New "private.table.toml" and "same-scope.table.toml" for
    less-public games.
- * otter(1) now honours OTTERCLI_LOG (in Rust env_logger format).
+ * otter(1) and otterlib(!) now honour OTTER_CLI_LOG
+   (in Rust env_logger format).
  * Change CLI to server management wire protocol to binary-framed
    MessagePack (was newline-framed JSON).
  * Build system and test suite improvements and fixes.
index a1e012a65bfc4443bf8ed233b1f86ed1209fc555..c757e1c4f177706b28408987691d69bca330fe76 100644 (file)
@@ -350,7 +350,7 @@ fn main() {
   }|{
     env_logger::Builder::new()
       .filter_level(log::LevelFilter::Info)
-      .parse_env("OTTERCLI_LOG")
+      .parse_env("OTTER_CLI_LOG")
       .init();
 
     let config = Thunk::<Result<(Arc<ServerConfig>,String),APE>,_>::new(
index 474b2019041dabca5a9a393c95ae421050b4cd44..3c0e371f7fbafbd23a6ef40fe30a6eb150a6e239 100644 (file)
@@ -222,7 +222,7 @@ fn main() {
 //    .format_level(true)
 //    .filter_module(exe_module_path, log::LevelFilter::Debug)
     .filter_level(log::LevelFilter::Info)
-    .parse_env("OTTERLIB_LOG")
+    .parse_env("OTTER_CLI_LOG")
     .init();
 
   const SPLIT: &[char] = &[',', ' '];