Changeset 180

Show
Ignore:
Timestamp:
02/22/08 23:06:30 (11 months ago)
Author:
jfp
Message:

refacs

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/jsmtpd/src/org/jsmtpd/Controler.java

    r176 r180  
    7272            this.wait(); 
    7373        } catch (InterruptedException e) { 
    74             e.printStackTrace(); 
     74            log.error(e); 
    7575        } 
    7676    } 
     
    239239        } catch (IOException e1) { 
    240240            log.info("Network Listener is down"); 
    241             e1.printStackTrace(); 
    242             return false; 
    243         } catch (InstantiationException e) { 
    244             e.printStackTrace(); 
    245             return false; 
    246         } catch (IllegalAccessException e) { 
    247             e.printStackTrace(); 
    248             return false; 
    249         } catch (ClassNotFoundException e) { 
    250             e.printStackTrace(); 
     241            log.error(e1); 
     242            return false; 
     243        } catch (Exception e) { 
     244                log.error(e); 
    251245            return false; 
    252246        } 
  • trunk/jsmtpd/src/org/jsmtpd/config/PluginLoader.java

    r136 r180  
    9999            factory.setAttribute("http://java.sun.com/xml/jaxp/properties/schemaLanguage", "http://www.w3.org/2001/XMLSchema"); 
    100100        } catch (IllegalArgumentException x) { 
    101             x.printStackTrace(); 
     101            log.error(x); 
    102102        } 
    103103        InputStream xsd = this.getClass().getClassLoader().getResourceAsStream("jsmtpd-plugin-config.xsd"); 
  • trunk/jsmtpd/src/org/jsmtpd/core/mail/Email.java

    r136 r180  
    208208        try { 
    209209            e = (Email) in.readObject(); 
    210         } catch (ClassNotFoundException cnfe) { 
    211             cnfe.printStackTrace(); 
    212         } 
     210        } catch (ClassNotFoundException cnfe) {} 
    213211        in.close(); 
    214212        return e; 
  • trunk/jsmtpd/src/org/jsmtpd/core/send/DeliveryWorker.java

    r130 r180  
    2121package org.jsmtpd.core.send; 
    2222 
     23import org.apache.commons.logging.Log; 
     24import org.apache.commons.logging.LogFactory; 
    2325import org.jsmtpd.core.mail.Email; 
    2426import org.jsmtpd.generic.threadpool.IThreadedClass; 
     
    3032 */ 
    3133public class DeliveryWorker implements IThreadedClass { 
    32  
     34        private static Log log = LogFactory.getLog(DeliveryWorker.class); 
    3335    private DeliveryHandler handler = new DeliveryHandler(); 
    3436    private Email curentMail = null; 
     
    4143            //=> requeue mail 
    4244            QueueService.getInstance().requeueMail(curentMail); 
    43             e.printStackTrace(); 
     45            log.error(e); 
    4446        } 
    4547        curentMail = null; 
  • trunk/jsmtpd/src/org/jsmtpd/plugins/acls/SimpleACL.java

    r170 r180  
    2828import java.util.List; 
    2929 
     30import org.apache.commons.logging.Log; 
     31import org.apache.commons.logging.LogFactory; 
    3032import org.jsmtpd.core.common.PluginInitException; 
    3133import org.jsmtpd.core.common.acl.ExtendedInet4Address; 
     
    4749 */ 
    4850public class SimpleACL implements IACL { 
    49  
     51        private static Log log = LogFactory.getLog(SimpleACL.class); 
    5052    /** 
    5153     * valid relayed hosts (open relay only for theses hosts) 
     
    7779            } 
    7880        } catch (UnknownHostException e) { 
    79             e.printStackTrace(); 
     81            log.error(e); 
    8082        } 
    8183 
     
    138140                    validRelays.add(tmp); 
    139141                } catch (UnknownHostException e) { 
    140                     e.printStackTrace(); 
     142                       log.error(e); 
    141143                } 
    142144 
     
    146148                    validRelays.add(tmp); 
    147149                } catch (UnknownHostException e) { 
    148                     e.printStackTrace(); 
     150                       log.error(e); 
    149151                } 
    150152            } 
     
    185187                wildcardUsers.add(in); 
    186188            } catch (InvalidAddress e) { 
    187                 //DBG should not happen as adresses are checked by the receiving service 
    188                 e.printStackTrace(); 
     189                log.error(e); 
    189190            } 
    190191            return; 
     
    194195            validAdresses.add(in); 
    195196        } catch (InvalidAddress e) { 
    196             //DBG should not happen as adresses are checked by the receiving service 
    197             e.printStackTrace(); 
     197                log.error(e); 
    198198        } 
    199199