feat: add logging system and debug audio routing

Co-authored-by: aider (deepseek/deepseek-coder) <aider@aider.chat>
This commit is contained in:
Loic Coenen
2026-05-05 13:51:12 +00:00
parent 23fd894efe
commit d1b128f12c
4 changed files with 161 additions and 5 deletions

6
main.c
View File

@@ -10,6 +10,7 @@
#include "dispatcher.h"
#include "carla.h"
#include "fs.h"
#include "logging.h"
static Engine engine;
static volatile int keep_running = 1;
@@ -129,6 +130,10 @@ int main(int argc, char *argv[]) {
dispatch = dispatcher_init(initial_state);
free(initial_state);
// Initialize logging
log_init("jack-looper.log", LOG_LEVEL_DEBUG);
LOG_INFO("JACK Looper starting...");
// Initialize filesystem module (auto-save thread)
fs_init();
@@ -192,6 +197,7 @@ int main(int argc, char *argv[]) {
engine_cleanup(&engine);
fs_cleanup();
dispatcher_stop();
log_cleanup();
return 0;
}