Project

General

Profile

« Previous | Next » 

Revision 9098

Added by Jing Tao almost 10 years ago

The constrcutor of EventLogData missed the user-agent field. So the user-agent wasn't recorded.
The bug was fixed.

View differences:

src/edu/ucsb/nceas/metacat/EventLogData.java
47 47
	 * @param revision the revision of the document to which the event applies
48 48
	 * @param event the string code for the event
49 49
	 */
50
	public EventLogData(String ipAddress, String principal, String docid, String event) {
50
	public EventLogData(String ipAddress, String userAgent, String principal, String docid, String event) {
51 51
		this.ipAddress = ipAddress;
52
		this.userAgent = userAgent;
52 53
		this.principal = principal;
53 54
		this.docid = docid;
54 55
		this.event = event;
src/edu/ucsb/nceas/metacat/EventLog.java
116 116
	 * @param event the string code for the event
117 117
     */
118 118
    public void log(String ipAddress, String userAgent, String principal, String docid, String event) {
119
        EventLogData logData = new EventLogData(ipAddress, principal, docid, event);
119
        EventLogData logData = new EventLogData(ipAddress, userAgent, principal, docid, event);
120 120
        insertLogEntry(logData);
121 121
        
122 122
        // update the event information in the index

Also available in: Unified diff