Skip to content

Commit

Permalink
Change some logging, fix raw type use in GuestbookPage IQSS#2574 IQSS…
Browse files Browse the repository at this point in the history
  • Loading branch information
bencomp committed Sep 24, 2015
1 parent 846934a commit acd4bee
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/main/java/edu/harvard/iq/dataverse/GuestbookPage.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
import java.util.Date;
import java.util.Iterator;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.ejb.EJB;
import javax.ejb.EJBException;
import javax.faces.application.FacesMessage;
Expand All @@ -32,6 +34,8 @@
@Named("GuestbookPage")
public class GuestbookPage implements java.io.Serializable {

private static final Logger logger = Logger.getLogger(GuestbookPage.class.getCanonicalName());

@EJB
GuestbookServiceBean guestbookService;

Expand Down Expand Up @@ -294,9 +298,9 @@ public String save() {
}
//
FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_FATAL, "Guestbook Save Failed", " - " + error.toString()));
System.out.print("dataverse " + dataverse.getName());
System.out.print("Ejb exception");
System.out.print(error.toString());
logger.log(Level.SEVERE, "Could not save Guestbook in dataverse {0}: {1}", new Object[]{ dataverse.getName(), error.toString()});
//System.out.print("Ejb exception");
//System.out.print(error.toString());
return null;
} catch (CommandException ex) {
System.out.print("command exception");
Expand Down

0 comments on commit acd4bee

Please sign in to comment.