diff options
author | som <somashekhar.puttagangaiah@intel.com> | 2022-04-01 20:27:47 +0530 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2022-04-20 15:20:34 +0200 |
commit | 1e08f9ca2c07ed2e080c76f66f50250e62e3bc31 (patch) | |
tree | e9125356b760785c161d9b92bc52be2d64478bcf /src/mm-context.c | |
parent | 4207ee61b75e754785d8e94046642a61303c6e7d (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-context.c')
-rw-r--r-- | src/mm-context.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mm-context.c b/src/mm-context.c index ee9b372c..37793e5a 100644 --- a/src/mm-context.c +++ b/src/mm-context.c @@ -134,6 +134,7 @@ static const gchar *log_file; static gboolean log_journal; static gboolean log_show_ts; static gboolean log_rel_ts; +static gboolean log_personal_info; static const GOptionEntry log_entries[] = { { @@ -163,6 +164,11 @@ static const GOptionEntry log_entries[] = { "Use relative timestamps (from MM start)", NULL }, + { + "log-personal-info", 0, 0, G_OPTION_ARG_NONE, &log_personal_info, + "Show personal info in logs", + NULL + }, { NULL } }; @@ -210,6 +216,12 @@ mm_context_get_log_relative_timestamps (void) return log_rel_ts; } +gboolean +mm_context_get_log_personal_info (void) +{ + return log_personal_info; +} + /*****************************************************************************/ /* Test context */ |