summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2014-01-27 12:26:48 -0500
committerRay Strode <rstrode@redhat.com>2014-01-27 12:27:05 -0500
commit350764ae84f1fd0b39af0a691aee9d7b957b9039 (patch)
tree863d7f0eaeb9dd1ee60bdd435112873d74e4554a
parent6814c3f7429c69cc0affd06ac5e69cd6a482619b (diff)
libply: add tracing statements to progress saving
We should at least report whether saving worked or failed.
-rw-r--r--src/libply/ply-progress.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/libply/ply-progress.c b/src/libply/ply-progress.c
index a88aa28b..4a16556d 100644
--- a/src/libply/ply-progress.c
+++ b/src/libply/ply-progress.c
@@ -216,9 +216,14 @@ ply_progress_save_cache (ply_progress_t* progress,
ply_list_node_t *node;
double cur_time = ply_progress_get_time(progress);
+ ply_trace ("saving progress cache to %s", filename);
+
fp = fopen (filename,"w");
if (fp == NULL)
- return;
+ {
+ ply_trace ("failed to save cache: %m");
+ return;
+ }
node = ply_list_get_first_node (progress->current_message_list);