Skip to content

Commit 09dca4e

Browse files
authored
Suppress sasl_error_logger output on Windows (#4492)
Correct env variable `ERL_AFLAGS` to suppress `sasl_error_logger` output. Suppressing messages like: ``` =ERROR REPORT==== 22-Mar-2023::22:47:36.788000 === Error in process <0.998.0> with exit value: {database_does_not_exist, [{mem3_shards,load_shards_from_db,"_users", [{file,"src/mem3_shards.erl"},{line,430}]}, {mem3_shards,load_shards_from_disk,1, [{file,"src/mem3_shards.erl"},{line,405}]}, {mem3_shards,load_shards_from_disk,2, [{file,"src/mem3_shards.erl"},{line,434}]}, {mem3_shards,for_docid,3,[{file,"src/mem3_shards.erl"},{line,100}]}, {fabric_doc_open,go,3,[{file,"src/fabric_doc_open.erl"},{line,39}]}, {chttpd_auth_cache,ensure_auth_ddoc_exists,2, [{file,"src/chttpd_auth_cache.erl"},{line,214}]}, {chttpd_auth_cache,listen_for_changes,1, [{file,"src/chttpd_auth_cache.erl"},{line,160}]}]} chttpd_socket_buffer_size_test:51: small_recbuf...[0.006 s] ok =INFO REPORT==== 22-Mar-2023::22:47:36.897000 === application: chttpd exited: stopped type: temporary =INFO REPORT==== 22-Mar-2023::22:47:36.897000 === application: fabric exited: stopped type: temporary ```
1 parent 0073e76 commit 09dca4e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Makefile.win

+5-5
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ endif
153153
.PHONY: eunit
154154
# target: eunit - Run EUnit tests, use EUNIT_OPTS to provide custom options
155155
eunit: export BUILDDIR = $(shell echo %cd%)
156-
eunit: export ERL_AFLAGS = $(shell echo "-config %cd%/rel/files/eunit.config")
156+
eunit: export ERL_AFLAGS = -config $(shell echo "%cd%")/rel/files/eunit.config
157157
eunit: export COUCHDB_QUERY_SERVER_JAVASCRIPT = $(shell echo %cd%)/bin/couchjs $(shell echo %cd%)/share/server/main.js
158158
eunit: export COUCHDB_TEST_ADMIN_PARTY_OVERRIDE=1
159159
eunit: couch
@@ -164,19 +164,19 @@ eunit: couch
164164
# target: exunit - Run ExUnit tests, use EXUNIT_OPTS to provide custom options
165165
exunit: export BUILDDIR = $(shell echo %cd%)
166166
exunit: export MIX_ENV=test
167-
exunit: export ERL_LIBS = $(shell echo %cd%)\src
168-
exunit: export ERL_AFLAGS = $(shell echo "-config %cd%/rel/files/eunit.config")
167+
exunit: export ERL_LIBS = $(shell echo %cd%)/src
168+
exunit: export ERL_AFLAGS = -config $(shell echo "%cd%")/rel/files/eunit.config
169169
exunit: export COUCHDB_QUERY_SERVER_JAVASCRIPT = $(shell echo %cd%)/bin/couchjs $(shell echo %cd%)/share/server/main.js
170170
exunit: couch elixir-init setup-eunit elixir-check-formatted elixir-credo
171171
@mix test --cover --trace $(EXUNIT_OPTS)
172172

173173
setup-eunit: export BUILDDIR = $(shell echo %cd%)
174-
setup-eunit: export ERL_AFLAGS = $(shell echo "-config %cd%/rel/files/eunit.config")
174+
setup-eunit: export ERL_AFLAGS = -config $(shell echo "%cd%")/rel/files/eunit.config
175175
setup-eunit:
176176
@$(REBAR) setup_eunit 2> nul
177177

178178
just-eunit: export BUILDDIR = $(shell echo %cd%)
179-
just-eunit: export ERL_AFLAGS = $(shell echo "-config %cd%/rel/files/eunit.config")
179+
just-eunit: export ERL_AFLAGS = -config $(shell echo "%cd%")/rel/files/eunit.config
180180
just-eunit:
181181
@$(REBAR) -r eunit $(EUNIT_OPTS)
182182

0 commit comments

Comments
 (0)