Skip to content
Snippets Groups Projects
Commit d0681aa1 authored by Simon McVittie's avatar Simon McVittie
Browse files

wrap: Log pressure-vessel version on startup


This serves two purposes: it gives us a timestamp for when
pressure-vessel started, and it puts the version number in the log.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent 55a2d5c4
No related branches found
No related tags found
1 merge request!210wrap: Log pressure-vessel version on startup
Pipeline #6939 passed
...@@ -1236,6 +1236,8 @@ main (int argc, ...@@ -1236,6 +1236,8 @@ main (int argc,
/* Set up the initial base logging */ /* Set up the initial base logging */
pv_set_up_logging (FALSE); pv_set_up_logging (FALSE);
g_info ("pressure-vessel version %s", VERSION);
original_argv = g_new0 (char *, argc + 1); original_argv = g_new0 (char *, argc + 1);
for (i = 0; i < argc; i++) for (i = 0; i < argc; i++)
......
...@@ -120,3 +120,9 @@ gpointer *my_g_hash_table_get_keys_as_array (GHashTable *hash, ...@@ -120,3 +120,9 @@ gpointer *my_g_hash_table_get_keys_as_array (GHashTable *hash,
gchar *my_g_utf8_make_valid (const gchar *str, gchar *my_g_utf8_make_valid (const gchar *str,
gssize len); gssize len);
#endif #endif
#ifndef g_info
#define g_info(...) g_log (G_LOG_DOMAIN, \
G_LOG_LEVEL_INFO, \
__VA_ARGS__)
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment