Skip to content

Commit

Permalink
OpenConceptLab/ocl_issues#495 logging time and url
Browse files Browse the repository at this point in the history
  • Loading branch information
Harsh Patel committed Dec 7, 2020
1 parent 1c6a75c commit a82ece2
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
* The OclFhirLoggingInterceptor class.
* @author harpatel1
Expand All @@ -17,7 +19,7 @@ public class OclFhirLoggingInterceptor {

@Hook(Pointcut.SERVER_INCOMING_REQUEST_POST_PROCESSED)
public boolean logRequestDetails(RequestDetails theRequest) {
ourLog.info("Handling {} client operation on ID {}", theRequest.getRequestType(), theRequest.getId());
ourLog.info("{} Handling {} client operation for url {}", new Date(), theRequest.getRequestType(), theRequest.getCompleteUrl());
return true;
}
}

0 comments on commit a82ece2

Please sign in to comment.