You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@attic.apache.org by se...@apache.org on 2025/10/13 13:18:43 UTC

(attic) branch main updated: Allow for info level logging [skip ci]

This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/attic.git


The following commit(s) were added to refs/heads/main by this push:
     new 88bc0d6  Allow for info level logging [skip ci]
88bc0d6 is described below

commit 88bc0d6a2388daa272557db666df64e6f0013152
Author: Sebb <se...@apache.org>
AuthorDate: Mon Oct 13 14:18:35 2025 +0100

    Allow for info level logging [skip ci]
---
 _docker/wrapper.lua | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/_docker/wrapper.lua b/_docker/wrapper.lua
index 5a9bf26..98f4a99 100644
--- a/_docker/wrapper.lua
+++ b/_docker/wrapper.lua
@@ -11,8 +11,9 @@ function output_filter_wrapper(r)
     s['content_type'] = r.content_type
     s['hostname'] = os.getenv('VAR_NAME') or 'localhost'
     -- For local debugging, also add the following:
-    s['warn'] = function(self, txt)
-        r:warn(txt)
-    end
+    s['warn'] = function(self, txt) r:warn(txt) end
+    s['info'] = function(self, txt) r:info(txt) end
+    -- Show that wrapper has been invoked
+    s:info("Wrapper: " .. s.hostname .. " " .. s.content_type)
     output_filter(s) -- call with updated settings
 end