Commit 1c54d340 authored by Martin Vala's avatar Martin Vala
Browse files

Merge branch '58-setup-log-level-correctly' into 'master'

Resolve "Setup log level correctly"

Closes #58

See merge request !32
parents bcfa55ea fb3384aa
Pipeline #609389 skipped with stage
Name: eos-docker-utils
Version: 1.0.15
Version: 1.0.16
Release: 1%{?dist}
Summary: EOS docker utils
License: LGPL v3+
......
......@@ -164,8 +164,6 @@ function eosDockerRun() {
[[ $ED_NODE_TYPE == mgm* ]] && [ ! -f $ED_ROOT_DIR/.eos-init-done ] && { $ED_DOCKER_CMD exec eos-$ED_NODE_TYPE eos-docker-mgm-init && touch $ED_ROOT_DIR/.eos-init-done; }
[[ $ED_NODE_TYPE == mgm* ]] && { $ED_DOCKER_CMD exec eos-$ED_NODE_TYPE eos -b debug notice \*; }
if [[ $ED_NODE_TYPE == fst* ]];then
ED_IS_ENTER=$(cat $HOME/.bashrc | grep ed-enter)
if [ -z "$ED_IS_ENTER" ];then
......@@ -506,6 +504,11 @@ function eosDockerBackup() {
INFO "File '$ED_BACKUP_DIR/$MY_DIR.tar' was created."
}
function eosDockerSetLogLevel() {
[[ $ED_NODE_TYPE == mgm* ]] && { $ED_DOCKER_CMD exec eos-$ED_NODE_TYPE eos -b debug notice \/eos\/\*\/mgm; }
[[ $ED_NODE_TYPE == mgm* ]] && { $ED_DOCKER_CMD exec eos-$ED_NODE_TYPE eos -b debug notice \/eos\/\*\/fst; }
}
function eosDockerInitLogger() {
[ -d $ED_ROOT_DIR/etc/ ] || mkdir -p $ED_ROOT_DIR/etc/
......@@ -619,18 +622,21 @@ case "$1" in
;;
start)
eosDockerStart $ED_HOSTS_TYPES
eosDockerSetLogLevel
;;
stop)
eosDockerStop $ED_HOSTS_TYPES
;;
restart)
eosDockerRestart $ED_HOSTS_TYPES
eosDockerSetLogLevel
;;
clean)
eosDockerClean $ED_HOSTS_TYPES
;;
update)
eosDockerUpdate $ED_HOSTS_TYPES
eosDockerSetLogLevel
;;
enter)
eosDockerEnter
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment