1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
package org.kuali.student.common.ui.server.gwt; |
17 |
|
|
18 |
|
import java.util.Map; |
19 |
|
|
20 |
|
import org.apache.log4j.Logger; |
21 |
|
import org.kuali.student.common.ui.client.service.LogRpcService; |
22 |
|
|
23 |
|
import com.google.gwt.user.server.rpc.RemoteServiceServlet; |
24 |
|
|
|
|
| 0% |
Uncovered Elements: 9 (9) |
Complexity: 1 |
Complexity Density: 0.12 |
|
25 |
|
public class LogRpcGwtServlet extends RemoteServiceServlet implements LogRpcService { |
26 |
|
private static final long serialVersionUID = 1L; |
27 |
|
|
28 |
|
final Logger logger = Logger.getLogger(LogRpcGwtServlet.class); |
29 |
|
|
30 |
|
|
31 |
|
|
32 |
|
private static final String DELIM = "********************************************************************************"; |
|
|
| 0% |
Uncovered Elements: 8 (8) |
Complexity: 1 |
Complexity Density: 0.12 |
|
33 |
0
|
@Override... |
34 |
|
public Boolean sendLog(Map<String, String> clientContextInfo, String log) { |
35 |
|
|
36 |
|
|
37 |
0
|
logger.debug(DELIM); |
38 |
0
|
logger.debug("Client info: "); |
39 |
0
|
for (String key : clientContextInfo.keySet()) { |
40 |
0
|
String value = clientContextInfo.get(key); |
41 |
0
|
logger.debug("\t" + key + " = " + value); |
42 |
|
} |
43 |
0
|
logger.debug("\n\nLog:"); |
44 |
0
|
logger.debug(log); |
45 |
0
|
return true; |
46 |
|
} |
47 |
|
|
48 |
|
} |