minor fix in netdata logs
Costa Tsaousis (ktsaou) committed
May 4, 2017 at 02:41 UTC
102d02253ac21fb35c658744a9eba08999681cea
1 file changed
+10
-10
src/log.c
+10
-10
@@ -169,7 +169,7 @@ int error_log_limit(int reset) {
169
if(prevented) {
170
char date[LOG_DATE_LENGTH];
171
log_date(date, LOG_DATE_LENGTH);
172
- fprintf(stderr, "%s: %s: Resetting logging for process '%s' (prevented %lu logs in the last %ld seconds).\n"
172
+ fprintf(stderr, "%s: %s Resetting logging for process '%s' (prevented %lu logs in the last %ld seconds).\n"
173
, date
174
, program_name
175
, program_name
@@ -190,7 +190,7 @@ int error_log_limit(int reset) {
190
if(prevented) {
191
char date[LOG_DATE_LENGTH];
192
log_date(date, LOG_DATE_LENGTH);
193
- fprintf(stderr, "%s: %s: Resuming logging from process '%s' (prevented %lu logs in the last %ld seconds).\n"
193
+ fprintf(stderr, "%s: %s Resuming logging from process '%s' (prevented %lu logs in the last %ld seconds).\n"
194
, date
195
, program_name
196
, program_name
@@ -212,7 +212,7 @@ int error_log_limit(int reset) {
212
if(!prevented) {
213
char date[LOG_DATE_LENGTH];
214
log_date(date, LOG_DATE_LENGTH);
215
- fprintf(stderr, "%s: %s: Too many logs (%lu logs in %ld seconds, threshold is set to %lu logs in %ld seconds). Preventing more logs from process '%s' for %ld seconds.\n"
215
+ fprintf(stderr, "%s: %s Too many logs (%lu logs in %ld seconds, threshold is set to %lu logs in %ld seconds). Preventing more logs from process '%s' for %ld seconds.\n"
216
, date
217
, program_name
218
, counter
@@ -246,7 +246,7 @@ void debug_int( const char *file, const char *function, const unsigned long line
246
log_date(date, LOG_DATE_LENGTH);
247
248
va_start( args, fmt );
249
- printf("%s: %s: DEBUG (%04lu@%-10.10s:%-15.15s): ", date, program_name, line, file, function);
249
+ printf("%s: %s DEBUG (%04lu@%-10.10s:%-15.15s): ", date, program_name, line, file, function);
250
vprintf(fmt, args);
251
va_end( args );
252
putchar('\n');
@@ -282,8 +282,8 @@ void info_int( const char *file, const char *function, const unsigned long line,
282
log_lock();
283
284
va_start( args, fmt );
285
- if(debug_flags) fprintf(stderr, "%s: %s: INFO : (%04lu@%-10.10s:%-15.15s): ", date, program_name, line, file, function);
286
- else fprintf(stderr, "%s: %s: INFO : ", date, program_name);
285
+ if(debug_flags) fprintf(stderr, "%s: %s INFO : (%04lu@%-10.10s:%-15.15s): ", date, program_name, line, file, function);
286
+ else fprintf(stderr, "%s: %s INFO : ", date, program_name);
287
vfprintf( stderr, fmt, args );
288
va_end( args );
289
@@ -338,8 +338,8 @@ void error_int( const char *prefix, const char *file, const char *function, cons
338
log_lock();
339
340
va_start( args, fmt );
341
- if(debug_flags) fprintf(stderr, "%s: %s: %s: (%04lu@%-10.10s:%-15.15s): ", date, program_name, prefix, line, file, function);
342
- else fprintf(stderr, "%s: %s: %s: ", date, program_name, prefix);
341
+ if(debug_flags) fprintf(stderr, "%s: %s %s: (%04lu@%-10.10s:%-15.15s): ", date, program_name, prefix, line, file, function);
342
+ else fprintf(stderr, "%s: %s %s: ", date, program_name, prefix);
343
vfprintf( stderr, fmt, args );
344
va_end( args );
345
@@ -369,8 +369,8 @@ void fatal_int( const char *file, const char *function, const unsigned long line
369
log_lock();
370
371
va_start( args, fmt );
372
- if(debug_flags) fprintf(stderr, "%s: %s: FATAL: (%04lu@%-10.10s:%-15.15s): ", date, program_name, line, file, function);
373
- else fprintf(stderr, "%s: %s: FATAL: ", date, program_name);
372
+ if(debug_flags) fprintf(stderr, "%s: %s FATAL: (%04lu@%-10.10s:%-15.15s): ", date, program_name, line, file, function);
373
+ else fprintf(stderr, "%s: %s FATAL: ", date, program_name);
374
vfprintf( stderr, fmt, args );
375
va_end( args );
376