Fix output of non log4c logging.

This commit is contained in:
Andreas Schneider 2008-04-25 11:26:20 +02:00
parent dd6cc1f83c
commit b59fec14e8

View file

@ -105,6 +105,9 @@ static LOG4C_INLINE int csync_log_load(const char *path){
#ifdef WITH_LOG4C
return (log4c_load(path));
#else
if (path == NULL) {
return 0;
}
return 0;
#endif
}
@ -127,6 +130,9 @@ static LOG4C_INLINE int csync_log_setappender(char *catName, char *appName) {
log4c_category_set_appender(log4c_category_get(catName),log4c_appender_get(appName));
return 0;
#else
if (catName == NULL || appName == NULL) {
return 0;
}
return 0;
#endif
}
@ -143,8 +149,12 @@ static LOG4C_INLINE void csync_log(char *catName, int a_priority, const char* a_
#else
va_list va;
va_start(va, a_format);
if (a_priority > 0) {
printf("%s - ", catName);
}
vprintf(a_format, va);
va_end(va);
printf("\n");
#endif
}