I asked the following question to several individuals, but they did not know the answer...

/    I have my "little" ftp application working, but I have a question... //
////
// If FtpTrace() is on, is there a way to suppress the messages to the screen? //
////
// In my app, I would like to ONLY display the trace messages if the actual file transfer failed, which I can detect with the returncode from FtpPut() //
////
//    Any help would be greatly appreciated. //
///


So my question (slightly restated) is...


Apparently the FTPtrace function works differently then one might expect...

It does not work like "TRACE ON / TRACE N" but instead, once turned on with "~FtpTrace()" the FTP methods appear to save the "trace" results in an internal array and then displays those results when "~FtpTraceLogoff()" is issued (ala, after everything has completed.) Not really sure what actually triggers the trace display, but it appears to be the FtpTraceoff() method.

From my point of view, while the FTP "addon" works extremely well, it it seems to be missing the ability to suppress the trace results - other than just not requesting the information to be saved in the first place.

In my case, the FTP functionality is buried deep inside a relatively complex application, and it is not easy to re-run the application with an additional option to turn FtpTrace on to see why a failure might have occurred. (and with my luck, problems can be intermittent!)

I can find nothing documented to indicate that there is a way to redirect the saved trace into a datafile, or to delete any previously saved text (i.e. suppress the trace output)

...

(1) if you do not turn FtpTrace on, then you cannot display what went wrong with one or more ftp requests...

(2) If you DO turn FtpTrace on, then you cannot suppress any of the trace previously saved - (which you might not need if the FTP request was successful) and your application output is cluttered with a lot of unneeded FTP trace information.

oorexx-devel@lists.sourceforge.netIf you turn FtpTrace on, then when EVERYTHING has COMPLETED, the trace results are displayed ... ...and they include all of the "ftp commands", and one or more lines of results from each command.


Anybody have any suggestion?


/s/ Bill Turner, wb4alm

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to