fix(debug): EVELOPER instead of DEVELOPER
This commit is contained in:
@@ -46,7 +46,7 @@ void _cws_log_error_internal(const char *file, int line, const char *fmt, ...) {
|
|||||||
va_end(args);
|
va_end(args);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef DEVELOPER
|
#ifdef EVELOPER
|
||||||
void _cws_log_debug_internal(const char *file, int line, const char *fmt, ...) {
|
void _cws_log_debug_internal(const char *file, int line, const char *fmt, ...) {
|
||||||
va_list args;
|
va_list args;
|
||||||
fprintf(stdout, _DEBUG " [%s:%d] ", file, line);
|
fprintf(stdout, _DEBUG " [%s:%d] ", file, line);
|
||||||
@@ -56,7 +56,7 @@ void _cws_log_debug_internal(const char *file, int line, const char *fmt, ...) {
|
|||||||
fprintf(stdout, "\n");
|
fprintf(stdout, "\n");
|
||||||
|
|
||||||
va_start(args, fmt);
|
va_start(args, fmt);
|
||||||
vsyslog(LOG_DEBUG, fmt, args);
|
syslog(LOG_DEBUG, fmt, args);
|
||||||
va_end(args);
|
va_end(args);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in New Issue
Block a user