From ad4dde288b924b30e4b5eb47f33a2099cd46c304 Mon Sep 17 00:00:00 2001 From: California Sullivan Date: Mon, 3 Jun 2019 11:03:05 -0700 Subject: [PATCH] journal.c: reduce severity of message when failing to opening old records The default configuration for telemetry is to not store records that were successfully sent. This would result in a multitude of errors when calling the journal program with --include_record, as the records no longer existed to open. Signed-off-by: California Sullivan --- src/journal/journal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/journal/journal.c b/src/journal/journal.c index b5bed45..9085c1d 100644 --- a/src/journal/journal.c +++ b/src/journal/journal.c @@ -417,7 +417,7 @@ static void print_record(char *record_id) recordfp = fopen(filepath, "r"); if (!recordfp) { - telem_perror("Error when opening a record to print"); + telem_log(LOG_INFO, "Could not open record %s: %s\n", record_id, strerror(errno)); return; }