Merge pull request #4266 from zmstone/chore-config-change-default-log-to
chore(config): Change default log_to config
This commit is contained in:
commit
fdc7f2a9ec
9
bin/emqx
9
bin/emqx
|
@ -518,6 +518,9 @@ case "$1" in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# set before generate_config
|
||||||
|
export EMQX_LOG__TO='console'
|
||||||
|
|
||||||
#generate app.config and vm.args
|
#generate app.config and vm.args
|
||||||
generate_config
|
generate_config
|
||||||
|
|
||||||
|
@ -534,7 +537,8 @@ case "$1" in
|
||||||
# shellcheck disable=SC2086 # $RELX_CONFIG_PATH $CONFIG_ARGS $EPMD_ARG are supposed to be split by whitespace
|
# shellcheck disable=SC2086 # $RELX_CONFIG_PATH $CONFIG_ARGS $EPMD_ARG are supposed to be split by whitespace
|
||||||
# Build an array of arguments to pass to exec later on
|
# Build an array of arguments to pass to exec later on
|
||||||
# Build it here because this command will be used for logging.
|
# Build it here because this command will be used for logging.
|
||||||
set -- "$BINDIR/erlexec" -boot "$BOOTFILE" -mode "$CODE_LOADING_MODE" \
|
set -- "$BINDIR/erlexec" \
|
||||||
|
-boot "$BOOTFILE" -mode "$CODE_LOADING_MODE" \
|
||||||
-boot_var ERTS_LIB_DIR "$ERTS_LIB_DIR" \
|
-boot_var ERTS_LIB_DIR "$ERTS_LIB_DIR" \
|
||||||
-mnesia dir "\"${MNESIA_DATA_DIR}\"" \
|
-mnesia dir "\"${MNESIA_DATA_DIR}\"" \
|
||||||
$RELX_CONFIG_PATH $CONFIG_ARGS $EPMD_ARG
|
$RELX_CONFIG_PATH $CONFIG_ARGS $EPMD_ARG
|
||||||
|
@ -557,6 +561,9 @@ case "$1" in
|
||||||
# start up the release in the foreground for use by runit
|
# start up the release in the foreground for use by runit
|
||||||
# or other supervision services
|
# or other supervision services
|
||||||
|
|
||||||
|
# set before generate_config
|
||||||
|
export EMQX_LOG__TO='console'
|
||||||
|
|
||||||
#generate app.config and vm.args
|
#generate app.config and vm.args
|
||||||
generate_config
|
generate_config
|
||||||
|
|
||||||
|
|
|
@ -412,7 +412,7 @@ rpc.socket_buffer = 1MB
|
||||||
## - file: write logs only to file
|
## - file: write logs only to file
|
||||||
## - console: write logs only to standard I/O
|
## - console: write logs only to standard I/O
|
||||||
## - both: write logs both to file and standard I/O
|
## - both: write logs both to file and standard I/O
|
||||||
log.to = both
|
log.to = file
|
||||||
|
|
||||||
## The log severity level.
|
## The log severity level.
|
||||||
##
|
##
|
||||||
|
|
|
@ -449,7 +449,7 @@ end}.
|
||||||
%%--------------------------------------------------------------------
|
%%--------------------------------------------------------------------
|
||||||
|
|
||||||
{mapping, "log.to", "kernel.logger", [
|
{mapping, "log.to", "kernel.logger", [
|
||||||
{default, console},
|
{default, file},
|
||||||
{datatype, {enum, [off, file, console, both]}}
|
{datatype, {enum, [off, file, console, both]}}
|
||||||
]}.
|
]}.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue