mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-30 02:34:56 +01:00
Debug output for content type mapping
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
4ea9d46584
commit
68ebb6f139
1 changed files with 3 additions and 2 deletions
|
@ -253,15 +253,16 @@ register_plugin(zathura_plugin_manager_t* plugin_manager, zathura_plugin_t* plug
|
|||
|| plugin->content_types == NULL
|
||||
|| plugin_manager == NULL
|
||||
|| plugin_manager->plugins == NULL) {
|
||||
girara_error("plugin: could not register\n");
|
||||
girara_error("plugin: could not register");
|
||||
return false;
|
||||
}
|
||||
|
||||
bool at_least_one = false;
|
||||
GIRARA_LIST_FOREACH_BODY(plugin->content_types, gchar*, type,
|
||||
if (plugin_mapping_new(plugin_manager, type, plugin) == false) {
|
||||
girara_error("plugin: already registered for filetype %s\n", type);
|
||||
girara_error("plugin: filetype already registered: %s", type);
|
||||
} else {
|
||||
girara_debug("plugin: filetype mapping addded: %s", type);
|
||||
at_least_one = true;
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue