Don't force debug mode when compiling with GEANY_DEBUG (this affects only the messages on stdout and stderr). Messages are logged always in the debug window.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2886 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Enrico Tröger 2008-08-13 18:44:09 +00:00
parent f73f4fd870
commit b185501584
3 changed files with 4 additions and 7 deletions

View File

@ -12,6 +12,10 @@
Fix logging of messages in the debug window on Windows.
When '--debug' option is given on Windows, set the
G_SPAWN_WIN32_DEBUG flag for more debug info for spawned processes.
* src/log.c, src/main.c:
Don't force debug mode when compiling with GEANY_DEBUG (this affects
only the messages on stdout and stderr). Messages are logged always
in the debug window.
2008-08-13 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>

View File

@ -94,9 +94,7 @@ static void handler_log(const gchar *domain, GLogLevelFlags level, const gchar *
{
gchar *time_str;
#ifndef GEANY_DEBUG
if (app != NULL && app->debug_mode)
#endif
{
#ifdef G_OS_WIN32
/* On Windows g_log_default_handler() is not enough, we need to print it

View File

@ -501,12 +501,7 @@ static void parse_command_line_options(gint *argc, gchar ***argv)
exit(0);
}
#ifdef GEANY_DEBUG
app->debug_mode = TRUE;
geany_debug("debug mode built in (can't be disabled)");
#else
app->debug_mode = debug_mode;
#endif
#ifdef G_OS_WIN32
win32_init_debug_code();