From 4e17af24531ba3c69fc590f2c29393c448d291ec Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Mar 12 2019 14:56:57 +0000 Subject: Ensure that error_logger is running Signed-off-by: Peter Lemenkov --- diff --git a/couchdb-0026-Ensure-that-error_logger-is-running.patch b/couchdb-0026-Ensure-that-error_logger-is-running.patch new file mode 100644 index 0000000..af39080 --- /dev/null +++ b/couchdb-0026-Ensure-that-error_logger-is-running.patch @@ -0,0 +1,18 @@ +From: Peter Lemenkov +Date: Tue, 12 Mar 2019 17:55:30 +0300 +Subject: [PATCH] Ensure that error_logger is running + +Signed-off-by: Peter Lemenkov + +diff --git a/src/couchdb/couch_log.erl b/src/couchdb/couch_log.erl +index db483a7a0..a7b2da082 100644 +--- a/src/couchdb/couch_log.erl ++++ b/src/couchdb/couch_log.erl +@@ -65,6 +65,7 @@ level_atom(?LEVEL_DEBUG) -> debug. + + + start_link() -> ++ error_logger:start(), + couch_event_sup:start_link({local, couch_log}, error_logger, couch_log, []). + + stop() -> diff --git a/couchdb.spec b/couchdb.spec index 7c62c74..e88d73c 100644 --- a/couchdb.spec +++ b/couchdb.spec @@ -34,6 +34,7 @@ Patch22: couchdb-0022-Deprecation-erlang-now-0-os-timestamp-0.patch Patch23: couchdb-0023-Deprecation-crypto-rand_uniform-2-rand-uniform-1.patch Patch24: couchdb-0024-Deprecation-erlang-get_stacktrace-0.patch Patch25: couchdb-0025-Don-t-use-compat-wrapper-over-random-and-rand.patch +Patch26: couchdb-0026-Ensure-that-error_logger-is-running.patch BuildRequires: autoconf BuildRequires: autoconf-archive BuildRequires: automake