Changeset 180
- Timestamp:
- 02/22/08 23:06:30 (11 months ago)
- Files:
-
- trunk/jsmtpd/src/org/jsmtpd/Controler.java (modified) (2 diffs)
- trunk/jsmtpd/src/org/jsmtpd/config/PluginLoader.java (modified) (1 diff)
- trunk/jsmtpd/src/org/jsmtpd/core/mail/Email.java (modified) (1 diff)
- trunk/jsmtpd/src/org/jsmtpd/core/send/DeliveryWorker.java (modified) (3 diffs)
- trunk/jsmtpd/src/org/jsmtpd/plugins/acls/SimpleACL.java (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/jsmtpd/src/org/jsmtpd/Controler.java
r176 r180 72 72 this.wait(); 73 73 } catch (InterruptedException e) { 74 e.printStackTrace();74 log.error(e); 75 75 } 76 76 } … … 239 239 } catch (IOException e1) { 240 240 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); 251 245 return false; 252 246 } trunk/jsmtpd/src/org/jsmtpd/config/PluginLoader.java
r136 r180 99 99 factory.setAttribute("http://java.sun.com/xml/jaxp/properties/schemaLanguage", "http://www.w3.org/2001/XMLSchema"); 100 100 } catch (IllegalArgumentException x) { 101 x.printStackTrace();101 log.error(x); 102 102 } 103 103 InputStream xsd = this.getClass().getClassLoader().getResourceAsStream("jsmtpd-plugin-config.xsd"); trunk/jsmtpd/src/org/jsmtpd/core/mail/Email.java
r136 r180 208 208 try { 209 209 e = (Email) in.readObject(); 210 } catch (ClassNotFoundException cnfe) { 211 cnfe.printStackTrace(); 212 } 210 } catch (ClassNotFoundException cnfe) {} 213 211 in.close(); 214 212 return e; trunk/jsmtpd/src/org/jsmtpd/core/send/DeliveryWorker.java
r130 r180 21 21 package org.jsmtpd.core.send; 22 22 23 import org.apache.commons.logging.Log; 24 import org.apache.commons.logging.LogFactory; 23 25 import org.jsmtpd.core.mail.Email; 24 26 import org.jsmtpd.generic.threadpool.IThreadedClass; … … 30 32 */ 31 33 public class DeliveryWorker implements IThreadedClass { 32 34 private static Log log = LogFactory.getLog(DeliveryWorker.class); 33 35 private DeliveryHandler handler = new DeliveryHandler(); 34 36 private Email curentMail = null; … … 41 43 //=> requeue mail 42 44 QueueService.getInstance().requeueMail(curentMail); 43 e.printStackTrace();45 log.error(e); 44 46 } 45 47 curentMail = null; trunk/jsmtpd/src/org/jsmtpd/plugins/acls/SimpleACL.java
r170 r180 28 28 import java.util.List; 29 29 30 import org.apache.commons.logging.Log; 31 import org.apache.commons.logging.LogFactory; 30 32 import org.jsmtpd.core.common.PluginInitException; 31 33 import org.jsmtpd.core.common.acl.ExtendedInet4Address; … … 47 49 */ 48 50 public class SimpleACL implements IACL { 49 51 private static Log log = LogFactory.getLog(SimpleACL.class); 50 52 /** 51 53 * valid relayed hosts (open relay only for theses hosts) … … 77 79 } 78 80 } catch (UnknownHostException e) { 79 e.printStackTrace();81 log.error(e); 80 82 } 81 83 … … 138 140 validRelays.add(tmp); 139 141 } catch (UnknownHostException e) { 140 e.printStackTrace();142 log.error(e); 141 143 } 142 144 … … 146 148 validRelays.add(tmp); 147 149 } catch (UnknownHostException e) { 148 e.printStackTrace();150 log.error(e); 149 151 } 150 152 } … … 185 187 wildcardUsers.add(in); 186 188 } catch (InvalidAddress e) { 187 //DBG should not happen as adresses are checked by the receiving service 188 e.printStackTrace(); 189 log.error(e); 189 190 } 190 191 return; … … 194 195 validAdresses.add(in); 195 196 } catch (InvalidAddress e) { 196 //DBG should not happen as adresses are checked by the receiving service 197 e.printStackTrace(); 197 log.error(e); 198 198 } 199 199
