> -----Original Message----- > From: libssh2-devel-boun...@cool.haxx.se > [mailto:libssh2-devel-boun...@cool.haxx.se] On Behalf Of > Daniel Stenberg > Sent: Friday, September 11, 2009 4:03 PM > To: libssh2 development > Subject: RE: libss2 debug level > > No, you call it once to set the debug output level from that > moment and onwards. > > libssh2_trace()
The executable is compiled from "example/simple/sftp.c", so I added the following code: ============================================ int main(int argc, char *argv[]) { ... /* Create a session instance */ session = libssh2_session_init(); if(!session) return -1; libssh2_trace(session, ~0); //xq ... fprintf(stderr, "libssh2_sftp_init()!\n"); sftp_session = libssh2_sftp_init(session); if (!sftp_session) { fprintf(stderr, "Unable to init SFTP session\n"); goto shutdown; } ... } ============================================ But it didn't take effect. All I can see is still outputed from fprintf() function call. Anything I have missed? Thanks, Xu Qiang _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel