Skip to content

Commit

Permalink
Merge pull request #1 from bram-atmire/DS-2229
Browse files Browse the repository at this point in the history
indentation fix
  • Loading branch information
rradillen committed Oct 29, 2014
2 parents 06f5d5b + 7a9bd49 commit cfb91f2
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions dspace-api/src/main/java/org/dspace/statistics/SolrLogger.java
Expand Up @@ -326,10 +326,10 @@ private static SolrInputDocument getCommonSolrDoc(DSpaceObject dspaceObject, Htt
log.error("Failed DNS Lookup for IP:" + ip);
log.debug(e.getMessage(),e);
}
if(request.getHeader("User-Agent") != null)
{
doc1.addField("userAgent", request.getHeader("User-Agent"));
}
if(request.getHeader("User-Agent") != null)
{
doc1.addField("userAgent", request.getHeader("User-Agent"));
}
// Save the location information if valid, save the event without
// location information if not valid
if(locationService != null)
Expand Down Expand Up @@ -411,10 +411,10 @@ private static SolrInputDocument getCommonSolrDoc(DSpaceObject dspaceObject, Str
log.error("Failed DNS Lookup for IP:" + ip);
log.debug(e.getMessage(),e);
}
if(userAgent != null)
{
doc1.addField("userAgent", userAgent);
}
if(userAgent != null)
{
doc1.addField("userAgent", userAgent);
}
// Save the location information if valid, save the event without
// location information if not valid
if(locationService != null)
Expand Down

0 comments on commit cfb91f2

Please sign in to comment.