You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ch...@apache.org on 2023/03/10 23:54:22 UTC

[couchdb] 02/02: Remove type from syslog entry as it's in metadata

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

chewbranca pushed a commit to branch add-report-logging
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 09b7c6d69ff5ace90216eed1b9247292f9e27196
Author: Russell Branca <ch...@apache.org>
AuthorDate: Fri Mar 10 15:54:01 2023 -0800

    Remove type from syslog entry as it's in metadata
---
 src/couch_log/src/couch_log_writer_syslog.erl | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/couch_log/src/couch_log_writer_syslog.erl b/src/couch_log/src/couch_log_writer_syslog.erl
index 567e623ba..d99550bde 100644
--- a/src/couch_log/src/couch_log_writer_syslog.erl
+++ b/src/couch_log/src/couch_log_writer_syslog.erl
@@ -93,10 +93,9 @@ do_write(Entry, St) ->
         pid = Pid,
         msg = Msg,
         msg_id = MsgId,
-        type = Type,
         time_stamp = TimeStamp
     } = couch_log_util:maybe_format_type(Entry),
-    Fmt = "<~B>~B ~s ~s ~s ~p ~p ~s - ",
+    Fmt = "<~B>~B ~s ~s ~s ~p ~s - ",
     Args = [
         St#st.facility bor get_level(Level),
         ?SYSLOG_VERSION,
@@ -104,7 +103,6 @@ do_write(Entry, St) ->
         St#st.hostname,
         St#st.appid,
         Pid,
-        Type,
         MsgId
     ],
     Pre = io_lib:format(Fmt, Args),