From: Ritu S. <sf...@us...> - 2004-08-03 07:33:20
|
Update of /cvsroot/smartfrog/core/smartfrog/src/org/smartfrog/services/os/download In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31043/src/org/smartfrog/services/os/download Modified Files: Download.java Log Message: Added logging Index: Download.java =================================================================== RCS file: /cvsroot/smartfrog/core/smartfrog/src/org/smartfrog/services/os/download/Download.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** Download.java 30 Jan 2004 00:10:52 -0000 1.1.1.1 --- Download.java 3 Aug 2004 07:33:11 -0000 1.2 *************** *** 32,35 **** --- 32,37 ---- import org.smartfrog.sfcore.reference.Reference; import org.smartfrog.sfcore.security.SFClassLoader; + import org.smartfrog.sfcore.logging.LogSF; + import org.smartfrog.sfcore.logging.LogFactory; /** *************** *** 61,65 **** RemoteException { super.sfStart(); ! String url = "NOT YET SET"; String localFile = "NOT YET SET"; --- 63,67 ---- RemoteException { super.sfStart(); ! LogSF log=LogFactory.getLog(this); String url = "NOT YET SET"; String localFile = "NOT YET SET"; *************** *** 101,107 **** new Thread(terminator).start(); } catch (Exception e) { ! System.out.println("error in downloading of url " + url + " to " + ! localFile); ! //e.printStackTrace(); //TODO : Need to be revisited --- 103,110 ---- new Thread(terminator).start(); } catch (Exception e) { ! String errStr="error in downloading of url " + url + " to " + ! localFile; ! if(log.isErrorEnabled()) ! log.error(errStr); //e.printStackTrace(); //TODO : Need to be revisited |