If you enable debugging (Debug => 1 in the Net::FTP constructor), messages will be sent to stderr, which will typically end up in the web server's error log. See CGI::Carp for how to redirect them.
Comment on Re: Net::FTP works as script, but not CGI