Project

General

Profile

Revision 6613

print the stacktrace when there is an error -- debuggin!

View differences:

src/edu/ucsb/nceas/metacat/replication/ReplicationService.java
894 894
			}
895 895

  
896 896
		} catch (Exception e) {
897
			logMetacat.error("ReplicationService.handleForceReplicateDataFileRequest - " + ReplicationService.METACAT_REPL_ERROR_MSG);                         
897
			e.printStackTrace();
898
			logMetacat.error("ReplicationService.handleForceReplicateDataFileRequest - " + ReplicationService.METACAT_REPL_ERROR_MSG, e);                         
898 899
			logReplication.error("ReplicationService.handleForceReplicateDataFileRequest - Datafile " + docid
899 900
					+ " failed to added to DB with " + "action " + dbaction + " because "
900 901
					+ e.getMessage());

Also available in: Unified diff