Change component's log level
This article describes the necessary steps to change a log level type between the default prod (WARN/ERROR) and dev (DEBUG/INFO) for a specific server or component.
note
Make sure to run these steps as the runtime user as defined in the wf_user variable in config.yml.
Log in via SSH to server where component is installed
For the list of components and their location, refer to SPA component overview.
Supported servers include APP, DB, OCR, ML, APM (Linux only). The log level type cannot be modified for RPA and BI servers.
Change user
Change user to the default wfuser. Change directory to PACKAGE_DIR.
su - wfuser
cd /opt/workfusion/wf_installer
If this directory is not present, it means that the installer was either deleted or unpacked to different location.
Update log level variable
Update the log_level_type variable with the prod or dev value in config.yml (located in PACKAGE_DIR).
vi config.yml
log_level_type: prod # possible values 'prod' or 'dev'
The log_level_type variable allows you to switch the log level for specific SPA components. Prod is less verbose than dev. Check the log_config variable for details in group_vars/all/main.yml.
Update log level
Update the log level running the command with appropriate options. There are two valid scenarios to follow:
Update the log level for all components on the current server. In this case, you need to specify a server role (e.g.,
appas the server role in the example below). See Maintenance for more information../install.sh update_log_level appUpdate log level for a specific component on the current server. In this case, you need to specify both a current server role and a component name (e.g.,
ocras the server role andocr-workeras the component name in the example below)../install.sh update_log_level ocr -e log_components="ocr-worker"
There can be one or more comma-separated component names in the log_components variable. Supported values are as follows:
allocrworkerocrrestocrtasksqcwfbiwfagentworkspaceworkfusionvds