|
|
@@ -4,9 +4,13 @@ import Utils.LogBuilder;
|
|
|
import client.LogTrackingClient;
|
|
|
import com.nju.edu.logTracking.enums.SeecSystem;
|
|
|
import org.slf4j.Logger;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
|
public class LogTrackingUtil {
|
|
|
|
|
|
+ @Autowired
|
|
|
+ public UserService userService;
|
|
|
+
|
|
|
private static final Logger logger = LoggerUtil.getLogger(LogTrackingUtil.class);
|
|
|
|
|
|
public static void log(String data, OpType opType) {
|
|
|
@@ -15,8 +19,8 @@ public class LogTrackingUtil {
|
|
|
.target(SeecSystem.SMART)
|
|
|
.source(SeecSystem.DEVCLOUD)
|
|
|
.operationType(opType.getNum())
|
|
|
- .data(data)
|
|
|
- .message(opType.getName())
|
|
|
+ .data(data.concat(" uid:").concat(userService.loginUser().getId()))
|
|
|
+ .message(opType.getName()
|
|
|
.build();
|
|
|
LogTrackingClient
|
|
|
.getClient()
|