aboutsummaryrefslogtreecommitdiff
path: root/src/mm-log.c
diff options
context:
space:
mode:
authorsom <somashekhar.puttagangaiah@intel.com>2022-04-01 20:27:47 +0530
committerAleksander Morgado <aleksander@aleksander.es>2022-04-20 15:20:34 +0200
commit1e08f9ca2c07ed2e080c76f66f50250e62e3bc31 (patch)
treee9125356b760785c161d9b92bc52be2d64478bcf /src/mm-log.c
parent4207ee61b75e754785d8e94046642a61303c6e7d (diff)
mm-log: hiding personal info while logging
During mm logging, some of the information like simIccId, Telephone numbers need to be hidden from displaying in the logs to protect some of the user information. Implemented for MBIM requiring libmbim 1.27.6, which is the development version that includes the needed API.
Diffstat (limited to 'src/mm-log.c')
-rw-r--r--src/mm-log.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mm-log.c b/src/mm-log.c
index 22a39012..7b81d9fa 100644
--- a/src/mm-log.c
+++ b/src/mm-log.c
@@ -310,6 +310,7 @@ mm_log_setup (const char *level,
gboolean log_journal,
gboolean show_timestamps,
gboolean rel_timestamps,
+ gboolean show_personal_info,
GError **error)
{
/* levels */
@@ -366,6 +367,7 @@ mm_log_setup (const char *level,
#endif
#if defined WITH_MBIM
+ mbim_utils_set_show_personal_info (show_personal_info);
g_log_set_handler ("Mbim",
G_LOG_LEVEL_MASK | G_LOG_FLAG_FATAL | G_LOG_FLAG_RECURSION,
log_handler,