Skip to content
Snippets Groups Projects
Commit 35f7af19 authored by Vincent Hatakeyama's avatar Vincent Hatakeyama
Browse files

Allow setting log handler instead of log level

parent 487e9395
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,11 @@
History
=======
20.9.0
------
Allow setting log handler instead of log level.
20.8.2
------
......
......@@ -84,4 +84,12 @@
PG_USER=""
ODOO_USER=""
fi
if [[ -n "$INSTALL_LOG_HANDLER" ]];
then
INSTALL_ARGUMENTS="$INSTALL_ARGUMENTS --log-handler=${INSTALL_LOG_HANDLER}"
elif [[ -z "$INSTALL_LOG_LEVEL" ]];
then
# default to warn if nothing set
INSTALL_ARGUMENTS="$INSTALL_ARGUMENTS --log-level=warn"
fi
# This should be a parameter if it was simple to parse
......@@ -87,5 +95,8 @@
# This should be a parameter if it was simple to parse
INSTALL_ARGUMENTS="--log-level=${INSTALL_LOG_LEVEL:-warn}"
if [[ -n "$INSTALL_LOG_LEVEL" ]];
then
INSTALL_ARGUMENTS="$INSTALL_ARGUMENTS --log-level=${INSTALL_LOG_LEVEL}"
fi
if [[ -n "$ODOO_WITHOUT_DEMO" ]];
then
INSTALL_ARGUMENTS="$INSTALL_ARGUMENTS --without-demo=$ODOO_WITHOUT_DEMO"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment