From a026db7389c15eb5a8905e6f04eb3a92bf31f9bc Mon Sep 17 00:00:00 2001 From: sanine Date: Tue, 4 Jan 2022 12:40:29 -0600 Subject: improve logging and move per-function logs to TRACE --- src/bindings.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/bindings.c') diff --git a/src/bindings.c b/src/bindings.c index 1e24570..7a94020 100644 --- a/src/bindings.c +++ b/src/bindings.c @@ -49,7 +49,7 @@ static void md_callback(const MD_CHAR *html, MD_SIZE size, void *data) int markdown(lua_State *L) { - argent_log(DEBUG, "begin markdown parsing"); + argent_log(TRACE, "begin markdown parsing"); char *markdown_buffer; hs_parse_args(L, hs_str(markdown_buffer)); size_t len = strlen(markdown_buffer); @@ -79,7 +79,7 @@ int markdown(lua_State *L) lua_pushstring(L, data.buf); free(data.buf); - argent_log(DEBUG, "finish markdown parsing"); + argent_log(TRACE, "finish markdown parsing"); return 1; } @@ -91,7 +91,7 @@ static struct dirent *read_dir(lua_State *L, DIR *directory); int scan_directory(lua_State *L) { - argent_log(DEBUG, "begin scan_directory()"); + argent_log(TRACE, "begin scan_directory()"); char *dir_name; hs_parse_args(L, hs_str(dir_name)); @@ -120,7 +120,7 @@ int scan_directory(lua_State *L) } closedir(directory); - argent_log(DEBUG, "end scan_directory()"); + argent_log(TRACE, "end scan_directory()"); return 2; } -- cgit v1.2.1