summaryrefslogtreecommitdiffstats
path: root/agent/gpg-agent.c
diff options
context:
space:
mode:
authorMarcus Brinkmann <mb@g10code.com>2009-11-27 20:13:02 +0100
committerMarcus Brinkmann <mb@g10code.com>2009-11-27 20:13:02 +0100
commite1172f00be009e025d4b25d7ad8f9bb2ec22c17b (patch)
tree671ffbfcfbbb7a313130f53e045e948eac10b9fd /agent/gpg-agent.c
parentagent/ (diff)
downloadgnupg2-e1172f00be009e025d4b25d7ad8f9bb2ec22c17b.tar.xz
gnupg2-e1172f00be009e025d4b25d7ad8f9bb2ec22c17b.zip
2009-11-27 Marcus Brinkmann <marcus@g10code.de>
* command.c (start_command_handler): Do not call assuan_set_log_stream anymore. * gpg-agent.c (main): But call assuan_set_assuan_log_stream here.
Diffstat (limited to '')
-rw-r--r--agent/gpg-agent.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/agent/gpg-agent.c b/agent/gpg-agent.c
index ba7223634..07e620735 100644
--- a/agent/gpg-agent.c
+++ b/agent/gpg-agent.c
@@ -472,6 +472,8 @@ parse_rereadable_options (ARGPARSE_ARGS *pargs, int reread)
|| strcmp (current_logfile, pargs->r.ret_str))
{
log_set_file (pargs->r.ret_str);
+ if (DBG_ASSUAN)
+ assuan_set_assuan_log_stream (log_get_stream ());
xfree (current_logfile);
current_logfile = xtrystrdup (pargs->r.ret_str);
}
@@ -922,6 +924,8 @@ main (int argc, char **argv )
|JNLIB_LOG_WITH_PID));
current_logfile = xstrdup (logfile);
}
+ if (DBG_ASSUAN)
+ assuan_set_assuan_log_stream (log_get_stream ());
/* Make sure that we have a default ttyname. */
if (!default_ttyname && ttyname (1))