Anyone?
On May 23, 2016 8:14 AM, "Mike DePaulo" <[email protected]> wrote:
> Hi guys,
>
> Background:
> I am trying to fix bug #1002 completely; there appear to be multiple
> underlying bugs. One of them is that unless I start x2goclient from a
> cygwin shell, cygwin sshd doesn't actually listen its port.
>
> Anyway, at the moment I am trying to make x2goclient start sshd with
> debug logging when x2goclient is launched with --debug, but I am
> unable to do so. Every time I launch x2goclient, sshd_config is
> regenerated without the debug line.
>
> I've tried 2 different approaches, you can see them below. Ignore the
> x2goDebug line.
>
> diff --git a/src/onmainwindow.cpp b/src/onmainwindow.cpp
> index 925085b..a1d92a8 100644
> --- a/src/onmainwindow.cpp
> +++ b/src/onmainwindow.cpp
> @@ -10292,6 +10292,8 @@ void ONMainWindow::generateEtcFiles()
> /* This may need some sanitization, i.e., appDir could
> potentially include whitespace. */
> <<appDir<<"/sftp-server\n";
> #endif
> + x2goDebug<<"LogLevel DEBUG1";
> + out<<"LogLevel DEBUG1";
> file.close();
> x2goDebug<<etcDir +"/sshd_config created.";
> }
>
> ----------------
> diff --git a/src/onmainwindow.cpp b/src/onmainwindow.cpp
> index 925085b..928da70 100644
> --- a/src/onmainwindow.cpp
> +++ b/src/onmainwindow.cpp
> @@ -10293,6 +10293,13 @@ void ONMainWindow::generateEtcFiles()
> <<appDir<<"/sftp-server\n";
> #endif
> file.close();
> + if (debugging)
> + {
> + QTextStream out2 ( &file );
> + x2goDebug<<"LogLevel DEBUG1";
> + out2<<"LogLevel DEBUG1";
> + file.close();
> + }
> x2goDebug<<etcDir +"/sshd_config created.";
> }
>
_______________________________________________
x2go-dev mailing list
[email protected]
http://lists.x2go.org/listinfo/x2go-dev