Accept optional debug with constructor parameter object #87

timburgess opened this Issue Mar 4, 2014 · 0 comments


1 participant

Enable the constructor to accept an optional debug parameter. e.g.

var Ftp = new JSFtp({
    host: "",
    port: 21,
    user: "user",
    pass: "1234",
    debug: console.log

The presence of the debug opt would result in debug statements being output to console.log.

As a constructor parameter, this would make it very easy to extend upstream code so that an end-user with comms problems could set a checkbox to "output debug". The debug output would provide extensive detail in order to help troubleshoot their problem.

@sergi sergi closed this in 0a0d263 May 10, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment