X-Git-Url: https://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Fnote.c;h=77f98cfa48b9debec6e8fb74cec0b4a4c2f19297;hb=2cf9ca6ed6eca3a02209f58ab86d663d7cfbf710;hp=2fcb51f617cc98b7991fec84da101e428ef1b13f;hpb=4d1a39be05a99a8fbd2b4839f37c7a21d4214c59;p=ptask.git diff --git a/src/note.c b/src/note.c index 2fcb51f..77f98cf 100644 --- a/src/note.c +++ b/src/note.c @@ -26,7 +26,7 @@ #include #include -static char *get_path(const char *uuid) +static char *get_default_path(const char *uuid) { char *home, *dir, *path; @@ -49,6 +49,11 @@ static char *get_path(const char *uuid) return path; } +static char *get_path(const char *uuid) +{ + return get_default_path(uuid); +} + void note_put(const char *uuid, const char *note) { char *path; @@ -100,7 +105,7 @@ char *note_get(const char *uuid) } fclose(f); } else { - log_err("Failed to open %s", path); + log_debug("%s does not exist or cannot be opened", path); } return str;