Commit Diff


commit - af22f4ac0ca65a1963349ed95b50fd64fe57680f
commit + aaa234c961c0deba340b5d07a9cf3715ba7dfe17
blob - e0195c3867a0d4c55b4a6f474bd5ab108a7113f3
blob + 12b624cdbace2d76e2d17d2f7e9c92c21cf0427a
--- src/common/log.c
+++ src/common/log.c
@@ -315,108 +315,6 @@ void log_error(LogInstance instance, const gchar *form
 	}
 }
 
-void log_status_ok(LogInstance instance, const gchar *format, ...)
-{
-	va_list args;
-	gchar buf[BUFFSIZE + LOG_TIME_LEN];
-	time_t t;
-	LogText *logtext = g_new0(LogText, 1);
-	struct tm buft;
-
-	time(&t);
-	strftime(buf, LOG_TIME_LEN + 1, LOG_TIME_FORMAT, localtime_r(&t, &buft));
-
-	va_start(args, format);
-	g_vsnprintf(buf + LOG_TIME_LEN, BUFFSIZE, format, args);
-	va_end(args);
-
-	if (debug_get_mode()) g_message("%s", buf + LOG_TIME_LEN);
-
-	logtext->instance = instance;
-	logtext->text = g_strdup(buf + LOG_TIME_LEN);
-	logtext->type = LOG_STATUS_OK;
-
-	g_timeout_add(0, invoke_hook_cb, logtext);
-
-	if (log_fp[instance]) {
-		FWRITE(buf, 1, LOG_TIME_LEN, log_fp[instance])
-		FPUTS("* OK: ", log_fp[instance])
-		log_size[instance] += strlen("* OK: ");
-		FPUTS(buf + LOG_TIME_LEN, log_fp[instance])
-		log_size[instance] += strlen(buf);
-		FFLUSH(log_fp[instance])
-		rotate_log(instance);
-	}
-}
-
-void log_status_nok(LogInstance instance, const gchar *format, ...)
-{
-	va_list args;
-	gchar buf[BUFFSIZE + LOG_TIME_LEN];
-	time_t t;
-	LogText *logtext = g_new0(LogText, 1);
-	struct tm buft;
-
-	time(&t);
-	strftime(buf, LOG_TIME_LEN + 1, LOG_TIME_FORMAT, localtime_r(&t, &buft));
-
-	va_start(args, format);
-	g_vsnprintf(buf + LOG_TIME_LEN, BUFFSIZE, format, args);
-	va_end(args);
-
-	if (debug_get_mode()) g_message("%s", buf + LOG_TIME_LEN);
-
-	logtext->instance = instance;
-	logtext->text = g_strdup(buf + LOG_TIME_LEN);
-	logtext->type = LOG_STATUS_NOK;
-
-	g_timeout_add(0, invoke_hook_cb, logtext);
-
-	if (log_fp[instance]) {
-		FWRITE(buf, 1, LOG_TIME_LEN, log_fp[instance])
-		FPUTS("* NOT OK: ", log_fp[instance])
-		log_size[instance] += strlen("* NOT OK: ");
-		FPUTS(buf + LOG_TIME_LEN, log_fp[instance])
-		log_size[instance] += strlen(buf);
-		FFLUSH(log_fp[instance])
-		rotate_log(instance);
-	}
-}
-
-void log_status_skip(LogInstance instance, const gchar *format, ...)
-{
-	va_list args;
-	gchar buf[BUFFSIZE + LOG_TIME_LEN];
-	time_t t;
-	LogText *logtext = g_new0(LogText, 1);
-	struct tm buft;
-
-	time(&t);
-	strftime(buf, LOG_TIME_LEN + 1, LOG_TIME_FORMAT, localtime_r(&t, &buft));
-
-	va_start(args, format);
-	g_vsnprintf(buf + LOG_TIME_LEN, BUFFSIZE, format, args);
-	va_end(args);
-
-	if (debug_get_mode()) g_message("%s", buf + LOG_TIME_LEN);
-
-	logtext->instance = instance;
-	logtext->text = g_strdup(buf + LOG_TIME_LEN);
-	logtext->type = LOG_STATUS_SKIP;
-
-	g_timeout_add(0, invoke_hook_cb, logtext);
-
-	if (log_fp[instance]) {
-		FWRITE(buf, 1, LOG_TIME_LEN, log_fp[instance])
-		FPUTS("* SKIPPED: ", log_fp[instance])
-		log_size[instance] += strlen("* SKIPPED: ");
-		FPUTS(buf + LOG_TIME_LEN, log_fp[instance])
-		log_size[instance] += strlen(buf);
-		FFLUSH(log_fp[instance])
-		rotate_log(instance);
-	}
-}
-
 #undef FWRITE
 #undef FPUTS
 #undef FFLUSH
blob - 0349c66a0e1fca7a106925e8c7d148673501f52a
blob + 946374bf17da2cd9a39b9717e61e659cda1f0610
--- src/common/log.h
+++ src/common/log.h
@@ -69,8 +69,5 @@ void log_print		(LogInstance instance, const gchar *fo
 void log_message	(LogInstance instance, const gchar *format, ...) G_GNUC_PRINTF(2, 3);
 void log_warning	(LogInstance instance, const gchar *format, ...) G_GNUC_PRINTF(2, 3);
 void log_error		(LogInstance instance, const gchar *format, ...) G_GNUC_PRINTF(2, 3);
-void log_status_ok	(LogInstance instance, const gchar *format, ...) G_GNUC_PRINTF(2, 3);
-void log_status_nok	(LogInstance instance, const gchar *format, ...) G_GNUC_PRINTF(2, 3);
-void log_status_skip	(LogInstance instance, const gchar *format, ...) G_GNUC_PRINTF(2, 3);
 
 #endif /* LOG_H */