Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MB-4454 Suppress error_logger and sasl tty handlers early.

Previously we would remove sasl and error handler in
cb_init_loggers. But some processes would have already started by that
time. And thus some output would already be produced. This can be
prevented by setting error_logger and sasl_error_logger parameters
appropriately.

Note that mnesia still produces some undesired tty output. We will
likely just get rid of it entirely.

Change-Id: I3a35a74df01ccbe9446484377a50b95f516c4b42
Reviewed-on: http://review.couchbase.org/20029
Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
  • Loading branch information...
commit add134f6612be0349b076fd96cad348f5c67213f 1 parent 0f05e38
@aartamonau aartamonau authored alk committed
View
2  cluster_run
@@ -90,6 +90,8 @@ def start_cluster(num_nodes, start_index, host, extra_args, args_prefix):
"-setcookie", "nocookie",
"-kernel", "inet_dist_listen_min", "21100",
"inet_dist_listen_max", "21199",
+ "error_logger", "false",
+ "-sasl", "sasl_error_logger", "false",
"-couch_ini"] + couch_configs(i) + [
"-ns_server", "config_path", '"etc/static_config.in"',
"error_logger_mf_dir", '"{0}"'.format(logdir),
View
2  couchbase-server.sh.in
@@ -121,6 +121,8 @@ _start() {
+K true \
-setcookie nocookie \
-kernel inet_dist_listen_min 21100 inet_dist_listen_max 21299 \
+ error_logger false \
+ -sasl sasl_error_logger false \
$* \
-run ns_bootstrap -- \
-couch_ini $couch_start_arguments \
View
5 src/cb_init_loggers.erl
@@ -18,14 +18,9 @@
-export([start_link/0]).
start_link() ->
- supress_loggers(),
set_couchdb_loglevel(),
ignore.
-supress_loggers() ->
- error_logger:delete_report_handler(error_logger_tty_h),
- error_logger:delete_report_handler(sasl_report_tty_h).
-
set_couchdb_loglevel() ->
LogLevel = ns_server:get_loglevel(couchdb),
CouchLogLevel = ns_server_to_couchdb_loglevel(LogLevel),
Please sign in to comment.
Something went wrong with that request. Please try again.