Changeset 79

Show
Ignore:
Timestamp:
01.12.2006 23:44:55 (2 years ago)
Author:
decoder
Message:

Fixed errorlog (was not working, because of $conf)
output to stderr -> default 1

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/devel/FuzzyOcr.cf

    r70 r79  
    3030 
    3131# Send logging output to stderr. 
    32 # Default value: 0 
    33 #focr_log_stderr 1 
     32# Default value: 1 
     33#focr_log_stderr 0 
    3434 
    3535# Logfile (make sure it is writable by the plugin)  
  • trunk/devel/FuzzyOcr/Config.pm

    r78 r79  
    215215    push (@cmds, { 
    216216        setting => 'focr_log_stderr', 
    217         default => 0
     217        default => 1
    218218        type => $Mail::SpamAssassin::Conf::CONF_TYPE_BOOL 
    219219    }); 
  • trunk/devel/FuzzyOcr/Logging.pm

    r78 r79  
    3737     
    3838sub errorlog { 
     39    my $conf = FuzzyOcr::Config::get_config(); 
    3940    _log("error",$_[0]) if $conf->{focr_log_stderr}; 
    40     my $conf = FuzzyOcr::Config::get_config(); 
    4141    if (defined $conf->{focr_logfile}) { 
    4242        logfile($_[0]);