From 1e08f9ca2c07ed2e080c76f66f50250e62e3bc31 Mon Sep 17 00:00:00 2001 From: som Date: Fri, 1 Apr 2022 20:27:47 +0530 Subject: 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. --- src/mm-log.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mm-log.c') 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, -- cgit v1.2.3-70-g09d2