<p dir="ltr">Anyone?</p>
<div class="gmail_quote">On May 23, 2016 8:14 AM, "Mike DePaulo" <<a href="mailto:mikedep333@gmail.com">mikedep333@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi guys,<br>
<br>
Background:<br>
I am trying to fix bug #1002 completely; there appear to be multiple<br>
underlying bugs. One of them is that unless I start x2goclient from a<br>
cygwin shell, cygwin sshd doesn't actually listen its port.<br>
<br>
Anyway, at the moment I am trying to make x2goclient start sshd with<br>
debug logging when x2goclient is launched with --debug, but I am<br>
unable to do so. Every time I launch x2goclient, sshd_config is<br>
regenerated without the debug line.<br>
<br>
I've tried 2 different approaches, you can see them below. Ignore the<br>
x2goDebug line.<br>
<br>
diff --git a/src/onmainwindow.cpp b/src/onmainwindow.cpp<br>
index 925085b..a1d92a8 100644<br>
--- a/src/onmainwindow.cpp<br>
+++ b/src/onmainwindow.cpp<br>
@@ -10292,6 +10292,8 @@ void ONMainWindow::generateEtcFiles()<br>
/* This may need some sanitization, i.e., appDir could<br>
potentially include whitespace. */<br>
<<appDir<<"/sftp-server\n";<br>
#endif<br>
+ x2goDebug<<"LogLevel DEBUG1";<br>
+ out<<"LogLevel DEBUG1";<br>
file.close();<br>
x2goDebug<<etcDir +"/sshd_config created.";<br>
}<br>
<br>
----------------<br>
diff --git a/src/onmainwindow.cpp b/src/onmainwindow.cpp<br>
index 925085b..928da70 100644<br>
--- a/src/onmainwindow.cpp<br>
+++ b/src/onmainwindow.cpp<br>
@@ -10293,6 +10293,13 @@ void ONMainWindow::generateEtcFiles()<br>
<<appDir<<"/sftp-server\n";<br>
#endif<br>
file.close();<br>
+ if (debugging)<br>
+ {<br>
+ QTextStream out2 ( &file );<br>
+ x2goDebug<<"LogLevel DEBUG1";<br>
+ out2<<"LogLevel DEBUG1";<br>
+ file.close();<br>
+ }<br>
x2goDebug<<etcDir +"/sshd_config created.";<br>
}<br>
</blockquote></div>