Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Julian Bouzas
WirePlumber
Commits
e10b0f87
Commit
e10b0f87
authored
Dec 18, 2019
by
George Kiagiadakis
Browse files
lib: debug loading of config files + endpoint priorities
parent
7abf7494
Changes
2
Hide whitespace changes
Inline
Side-by-side
lib/wp/configuration.c
View file @
e10b0f87
...
...
@@ -214,6 +214,9 @@ wp_configuration_reload (WpConfiguration *self, const char *extension)
/* Only parse files that have the proper extension */
if
(
g_str_has_suffix
(
file_name
,
ext
))
{
location
=
g_build_filename
(
path
,
file_name
,
NULL
);
g_debug
(
"loading config file: %s"
,
location
);
if
(
!
wp_config_parser_add_file
(
parser
,
location
))
g_warning
(
"Failed to parse file '%s'"
,
location
);
}
...
...
modules/module-session.c
View file @
e10b0f87
...
...
@@ -52,8 +52,10 @@ select_new_default_ep (struct module_data * data, WpDefaultEndpointType type,
def_id
=
wp_session_get_default_endpoint
(
WP_SESSION
(
data
->
session
),
type
);
if
(
def_id
!=
best_id
)
{
g_debug
(
"selecting default endpoint for type %x, old:%u, new:%u"
,
type
,
def_id
,
best_id
);
g_autofree
gchar
*
type_str
=
g_enum_to_string
(
WP_TYPE_DEFAULT_ENDPOINT_TYPE
,
type
);
g_debug
(
"selecting default endpoint for %s, old:%u, new:%u (priority %u)"
,
type_str
,
def_id
,
best_id
,
max_priority
);
wp_session_set_default_endpoint
(
WP_SESSION
(
data
->
session
),
type
,
best_id
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment