summaryrefslogtreecommitdiff
path: root/common/flatpak-prune.c
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2022-12-14 15:07:17 +0000
committerSimon McVittie <smcv@debian.org>2022-12-15 16:45:35 +0000
commit07a6541f0637079b3cd16ec5e38ef7dbc02453d9 (patch)
treedb23cfdeab9ce388179d61631ec488e81837b8e5 /common/flatpak-prune.c
parentea584acf200b1ec174fe7d0e6b22016a88930772 (diff)
downloadflatpak-07a6541f0637079b3cd16ec5e38ef7dbc02453d9.tar.gz
common: Use g_info() for messages that will be shown by flatpak -v
This brings us one step closer to being able to stop using the flatpak2 log domain for messages that are exclusive to `flatpak -v -v`. Signed-off-by: Simon McVittie <smcv@collabora.com>
Diffstat (limited to 'common/flatpak-prune.c')
-rw-r--r--common/flatpak-prune.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/common/flatpak-prune.c b/common/flatpak-prune.c
index 10490b67..42c6efb9 100644
--- a/common/flatpak-prune.c
+++ b/common/flatpak-prune.c
@@ -767,14 +767,14 @@ flatpak_repo_prune (OstreeRepo *repo,
return FALSE;
timer = g_timer_new ();
- g_debug ("Finding reachable objects, unlocked (depth=%d)", depth);
+ g_info ("Finding reachable objects, unlocked (depth=%d)", depth);
g_timer_start (timer);
if (!traverse_reachable_refs_unlocked (repo, depth, reachable, cancellable, error))
return FALSE;
g_timer_stop (timer);
- g_debug ("Elapsed time: %.1f sec", g_timer_elapsed (timer, NULL));
+ g_info ("Elapsed time: %.1f sec", g_timer_elapsed (timer, NULL));
}
{
@@ -785,7 +785,7 @@ flatpak_repo_prune (OstreeRepo *repo,
return FALSE;
timer = g_timer_new ();
- g_debug ("Finding reachable objects, locked (depth=%d)", depth);
+ g_info ("Finding reachable objects, locked (depth=%d)", depth);
g_timer_start (timer);
if (!traverse_reachable_refs_unlocked (repo, depth, reachable, cancellable, error))
@@ -796,29 +796,29 @@ flatpak_repo_prune (OstreeRepo *repo,
data.dont_prune = dry_run;
g_timer_stop (timer);
- g_debug ("Elapsed time: %.1f sec", g_timer_elapsed (timer, NULL));
+ g_info ("Elapsed time: %.1f sec", g_timer_elapsed (timer, NULL));
- g_debug ("Pruning unreachable objects");
+ g_info ("Pruning unreachable objects");
g_timer_start (timer);
if (!prune_unreachable_loose_objects (repo, &data, cancellable, error))
return FALSE;
g_timer_stop (timer);
- g_debug ("Elapsed time: %.1f sec", g_timer_elapsed (timer, NULL));
+ g_info ("Elapsed time: %.1f sec", g_timer_elapsed (timer, NULL));
}
/* Prune static deltas outside lock to avoid conflict with its exclusive lock */
if (!dry_run)
{
- g_debug ("Pruning static deltas");
+ g_info ("Pruning static deltas");
g_timer_start (timer);
if (!ostree_repo_prune_static_deltas (repo, NULL, cancellable, error))
return FALSE;
g_timer_stop (timer);
- g_debug ("Elapsed time: %.1f sec", g_timer_elapsed (timer, NULL));
+ g_info ("Elapsed time: %.1f sec", g_timer_elapsed (timer, NULL));
}
*out_objects_total = data.n_reachable + data.n_unreachable;