log: allow querying whether personal info should be shown or not
We need this when building printable representations of helper types like the MMBearerProperties object.
This commit is contained in:
@@ -213,6 +213,12 @@ log_backend_systemd_journal (const char *loc,
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
gboolean
|
||||||
|
mm_log_get_show_personal_info (void)
|
||||||
|
{
|
||||||
|
return personal_info;
|
||||||
|
}
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
mm_log_check_level_enabled (MMLogLevel level)
|
mm_log_check_level_enabled (MMLogLevel level)
|
||||||
{
|
{
|
||||||
|
@@ -74,6 +74,7 @@ gboolean mm_log_setup (const gchar *level,
|
|||||||
gboolean show_personal_info,
|
gboolean show_personal_info,
|
||||||
GError **error);
|
GError **error);
|
||||||
gboolean mm_log_check_level_enabled (MMLogLevel level);
|
gboolean mm_log_check_level_enabled (MMLogLevel level);
|
||||||
|
gboolean mm_log_get_show_personal_info (void);
|
||||||
void mm_log_shutdown (void);
|
void mm_log_shutdown (void);
|
||||||
|
|
||||||
/* Helper used when printing a string that may be personal
|
/* Helper used when printing a string that may be personal
|
||||||
|
Reference in New Issue
Block a user