[geany/geany] e98f11: Display warnings, critical and error messages even if not in verbose mode

Colomban Wendling git-noreply at xxxxx
Sun Jun 3 14:50:57 UTC 2012


Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Sun, 03 Jun 2012 14:50:57
Commit:      e98f11cbc504b5fb7711d2ce9bc641b28897272d
             https://github.com/geany/geany/commit/e98f11cbc504b5fb7711d2ce9bc641b28897272d

Log Message:
-----------
Display warnings, critical and error messages even if not in verbose mode


Modified Paths:
--------------
    src/log.c

Modified: src/log.c
3 files changed, 2 insertions(+), 1 deletions(-)
===================================================================
@@ -116,7 +116,8 @@ static void handler_log(const gchar *domain, GLogLevelFlags level, const gchar *
 {
 	gchar *time_str;
 
-	if (G_LIKELY(app != NULL && app->debug_mode))
+	if (G_LIKELY(app != NULL && app->debug_mode) ||
+		! ((G_LOG_LEVEL_DEBUG | G_LOG_LEVEL_INFO | G_LOG_LEVEL_MESSAGE) & level))
 	{
 #ifdef G_OS_WIN32
 		/* On Windows g_log_default_handler() is not enough, we need to print it


@@ Diff output truncated at 100000 characters. @@


--------------
This E-Mail was brought to you by github_commit_mail.py (Source: TBD).



More information about the Commits mailing list