in reply to Re: Should I extract Mail::Sender's debuging into a separate module?
in thread Should I extract Mail::Sender's debuging into a separate module?

Well I assumed the debug will only be used for debuging, instead of being logged in production. But I guess you are right, I should optionaly turn the logging off for the mail body&attachments to make the debug file smaller. I think the best solution would be to define four or five debug levels:

Thanks for your idea.

Update: You may find a beta version with this implemented at http://jenda.krynicky.cz/Beta/Sender.pm let me know if this works the way you need. See the debug_level option.

Jenda
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.
   -- Rick Osborne

Edit by castaway: Closed small tag in signature

  • Comment on Re: Re: Should I extract Mail::Sender's debuging into a separate module?

Replies are listed 'Best First'.
Re: Re: Re: Should I extract Mail::Sender's debuging into a separate module?
by nite_man (Deacon) on May 28, 2003 at 06:08 UTC
    I think, It's good idea to do several debug levels. I will try to use a beta version of your module.
    Thank you very much!
          
    --------------------------------
    SV* sv_bless(SV* sv, HV* stash);