[easytag] Ignore error when closing and writing the log file
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag] Ignore error when closing and writing the log file
- Date: Sat, 11 May 2013 07:51:02 +0000 (UTC)
commit 5896ede63e4e8a94972ec0d92eb45ed37bc98eaa
Author: David King <amigadave amigadave com>
Date: Sat May 11 08:49:20 2013 +0100
Ignore error when closing and writing the log file
Only report a single error when closing the log file fails, instead of
reporting an error when the write fails and another if the close fails.
src/log.c | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/src/log.c b/src/log.c
index aaf37db..24900c6 100644
--- a/src/log.c
+++ b/src/log.c
@@ -358,13 +358,8 @@ void Log_Print (Log_Error_Type error_type, gchar const *format, ...)
g_error_free (error);
- if (!g_output_stream_close (G_OUTPUT_STREAM (file_ostream), NULL,
- &error))
- {
- g_warning ("Error closing output stream of file '%s' ('%s')",
- file_path, error->message);
- g_error_free (error);
- }
+ /* Ignore errors. */
+ g_output_stream_close (G_OUTPUT_STREAM (file_ostream), NULL, NULL);
g_string_free (data, TRUE);
g_object_unref (file_ostream);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]