diff --git a/.gitignore b/.gitignore index 74050e2..96215f4 100644 --- a/.gitignore +++ b/.gitignore @@ -52,7 +52,7 @@ Mkfile.old dkms.conf build/logger* -build/log +build/log-* tags lib/* .DS_Store diff --git a/build/log-2021-11-24_19:20:06 b/build/log-2021-11-24_19:20:06 deleted file mode 100644 index 2956d51..0000000 --- a/build/log-2021-11-24_19:20:06 +++ /dev/null @@ -1,10 +0,0 @@ -2021-11-24 19:20:06 - [INFO] ---- logger.c initialization -2021-11-24 19:20:06 - [ERROR] --- Error one : 1 two : 2.000000 three : three -2021-11-24 19:20:06 - [WARNING] - warning one : 1 two : 2.000000 three : three -2021-11-24 19:20:06 - [SUCCESS] - success one : 1 two : 2.000000 three : three -2021-11-24 19:20:06 - [ERROR] --- assets path not found ../assets/image.png -2021-11-24 19:20:06 - [WARNING] - retry fetch, network error -2021-11-24 19:20:06 - [SUCCESS] - data fetched 230ms -2021-11-24 19:20:06 - [INFO] ---- init queue -2021-11-24 19:20:06 - [DEBUG] --- user email is : user@test.test -2021-11-24 19:20:06 - [INFO] ---- logger.c close diff --git a/build/log-2021-11-24_19:21:20 b/build/log-2021-11-24_19:21:20 deleted file mode 100644 index 9d98b86..0000000 --- a/build/log-2021-11-24_19:21:20 +++ /dev/null @@ -1,10 +0,0 @@ -2021-11-24 19:21:20 - [INFO] ---- logger.c initialization -2021-11-24 19:21:20 - [ERROR] --- Error one : 1 two : 2.000000 three : three -2021-11-24 19:21:20 - [WARNING] - warning one : 1 two : 2.000000 three : three -2021-11-24 19:21:20 - [SUCCESS] - success one : 1 two : 2.000000 three : three -2021-11-24 19:21:20 - [ERROR] --- assets path not found ../assets/image.png -2021-11-24 19:21:20 - [WARNING] - retry fetch, network error -2021-11-24 19:21:20 - [SUCCESS] - data fetched 230ms -2021-11-24 19:21:20 - [INFO] ---- init queue -2021-11-24 19:21:20 - [DEBUG] --- user email is : user@test.test -2021-11-24 19:21:20 - [INFO] ---- logger.c close diff --git a/src/logger.c b/src/logger.c index 7e62c5c..71fda8a 100644 --- a/src/logger.c +++ b/src/logger.c @@ -11,7 +11,7 @@ FILE* file = NULL; int loggerLevel = LOGGER_LEVEL_ALL; -/* used to know if we can write in file, set to 1 if not file can be opened */ +/* used to know if we can write in file, set to 1 if the file can't be opened */ int loggerFileError = 0; static void LoggerReplaceSpace(char* pointer, char character)