[ostree] sysroot: Add a log with MESSAGE_ID when deployment is complete
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] sysroot: Add a log with MESSAGE_ID when deployment is complete
- Date: Sun, 9 Feb 2014 18:18:14 +0000 (UTC)
commit a30fcba273a09a0185283965d4b14477eb9a3926
Author: Colin Walters <walters verbum org>
Date: Sun Feb 9 13:17:24 2014 -0500
sysroot: Add a log with MESSAGE_ID when deployment is complete
src/libostree/ostree-sysroot-deploy.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/libostree/ostree-sysroot-deploy.c b/src/libostree/ostree-sysroot-deploy.c
index 4da39a6..aa55db2 100644
--- a/src/libostree/ostree-sysroot-deploy.c
+++ b/src/libostree/ostree-sysroot-deploy.c
@@ -32,6 +32,8 @@
#include "otutil.h"
#include "libgsystem.h"
+#define OSTREE_DEPLOYMENT_COMPLETE_ID "dd440e3e549083b63d0efc7dc15255f1"
+
/**
* copy_modified_config_file:
*
@@ -1410,7 +1412,10 @@ ostree_sysroot_write_deployments (OstreeSysroot *self,
}
}
- g_print ("Transaction complete, performing cleanup\n");
+ gs_log_structured_print_id_v (OSTREE_DEPLOYMENT_COMPLETE_ID,
+ "Transaction complete; bootconfig swap: %s deployment count change: %i)",
+ requires_new_bootversion ? "yes" : "no",
+ new_deployments->len - self->deployments->len);
/* Now reload from disk */
if (!ostree_sysroot_load (self, cancellable, error))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]