[tracker] tracker-extract-gstreamer, msoffice: Improve warning message
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] tracker-extract-gstreamer, msoffice: Improve warning message
- Date: Tue, 17 Mar 2015 20:54:52 +0000 (UTC)
commit a36cf90a3011b48d203cd435a8bc31ce94accac5
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Mar 17 19:51:23 2015 +0100
tracker-extract-gstreamer,msoffice: Improve warning message
If we give the uri there, it's possible to know the file that issued the
warning without verbosity>1 logs.
https://bugzilla.gnome.org/show_bug.cgi?id=746256
src/tracker-extract/tracker-extract-gstreamer.c | 4 ++--
src/tracker-extract/tracker-extract-msoffice.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-gstreamer.c b/src/tracker-extract/tracker-extract-gstreamer.c
index 8edcc02..bc84a13 100644
--- a/src/tracker-extract/tracker-extract-gstreamer.c
+++ b/src/tracker-extract/tracker-extract-gstreamer.c
@@ -1496,8 +1496,8 @@ discoverer_init_and_run (MetadataExtractor *extractor,
required_plugins_message);
g_free (required_plugins_message);
} else {
- g_warning ("Call to gst_discoverer_discover_uri() failed: %s",
- error->message);
+ g_warning ("Call to gst_discoverer_discover_uri(%s) failed: %s",
+ uri, error->message);
}
gst_discoverer_info_unref (info);
g_error_free (error);
diff --git a/src/tracker-extract/tracker-extract-msoffice.c b/src/tracker-extract/tracker-extract-msoffice.c
index 83693de..595dbc0 100644
--- a/src/tracker-extract/tracker-extract-msoffice.c
+++ b/src/tracker-extract/tracker-extract-msoffice.c
@@ -759,7 +759,7 @@ open_file (const gchar *filename, FILE *file)
infile = gsf_infile_msole_new (input, &error);
if (error) {
- g_warning ("Failed to open file: %s", error->message);
+ g_warning ("Failed to open file '%s': %s", filename, error->message);
g_error_free (error);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]