Skip to content
Snippets Groups Projects
Commit 14ef009a authored by Beat Küng's avatar Beat Küng
Browse files

logging: add SDLOG_MODE = -1 to disable logging completely

parent a08b1682
No related branches found
No related tags found
No related merge requests found
......@@ -24,4 +24,8 @@ then
set LOGGER_ARGS "-f"
fi
logger start -b ${LOGGER_BUF} -t ${LOGGER_ARGS}
if ! param compare SDLOG_MODE -1
then
logger start -b ${LOGGER_BUF} -t ${LOGGER_ARGS}
fi
......@@ -55,6 +55,7 @@ PARAM_DEFINE_INT32(SDLOG_UTC_OFFSET, 0);
* Determines when to start and stop logging. By default, logging is started
* when arming the system, and stopped when disarming.
*
* @value -1 disabled
* @value 0 when armed until disarm (default)
* @value 1 from boot until disarm
* @value 2 from boot until shutdown
......
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