Skip to content
Snippets Groups Projects
Verified Commit b9ba0feb authored by rahix's avatar rahix
Browse files

chore(epicardium): Make logging less verbose by default


Signed-off-by: default avatarRahix <rahix@rahix.de>
parent af026115
No related branches found
No related tags found
No related merge requests found
......@@ -23,6 +23,7 @@
#include "card10.h"
#include "modules/log.h"
#define SSLOG_DEBUG(...) LOG_DEBUG("fatfs", __VA_ARGS__)
#define SSLOG_INFO(...) LOG_INFO("fatfs", __VA_ARGS__)
#define SSLOG_ERR(...) LOG_ERR("fatfs", __VA_ARGS__)
......@@ -136,7 +137,7 @@ int fatfs_attach()
ff_res = f_mount(&fs->FatFs, "/", 0);
if (ff_res == FR_OK) {
fs->initialized = true;
SSLOG_INFO("FatFs mounted\n");
SSLOG_DEBUG("FatFs mounted\n");
} else {
SSLOG_ERR(
"f_mount error %s\n",
......
......@@ -14,10 +14,10 @@ int main(void)
LOG_INFO("startup", "Epicardium startup ...");
LOG_INFO("startup", "Version " CARD10_VERSION);
LOG_INFO("startup", "Initializing hardware ...");
LOG_DEBUG("startup", "Initializing hardware ...");
hardware_early_init();
LOG_INFO("startup", "Initializing tasks ...");
LOG_DEBUG("startup", "Initializing tasks ...");
/* Serial */
if (xTaskCreate(
......@@ -85,7 +85,7 @@ int main(void)
abort();
}
LOG_INFO("startup", "Starting FreeRTOS ...");
LOG_DEBUG("startup", "Starting FreeRTOS ...");
vTaskStartScheduler();
LOG_CRIT("startup", "FreeRTOS did not start due to unknown error!");
......
......@@ -163,7 +163,7 @@ int hardware_early_init(void)
int hardware_init(void)
{
/* Light Sensor */
LOG_INFO("init", "Starting light sensor ...");
LOG_DEBUG("init", "Starting light sensor ...");
epic_light_sensor_run();
return 0;
......
......@@ -244,7 +244,7 @@ static int write_default_menu(void)
*/
static void load_menu(bool reset)
{
LOG_INFO("lifecycle", "Into the menu");
LOG_DEBUG("lifecycle", "Into the menu");
if (xSemaphoreTake(core1_mutex, BLOCK_WAIT) != pdTRUE) {
LOG_ERR("lifecycle",
......@@ -362,7 +362,7 @@ void vLifecycleTask(void *pvParameters)
vTaskDelay(portMAX_DELAY);
}
LOG_INFO("lifecycle", "Booting core 1 ...");
LOG_DEBUG("lifecycle", "Booting core 1 ...");
core1_boot();
vTaskDelay(pdMS_TO_TICKS(10));
......
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