aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/helper/LogAction.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/helper/LogAction.java')
-rw-r--r--src/org/traccar/helper/LogAction.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/org/traccar/helper/LogAction.java b/src/org/traccar/helper/LogAction.java
index d2c7ef5c1..2f575537d 100644
--- a/src/org/traccar/helper/LogAction.java
+++ b/src/org/traccar/helper/LogAction.java
@@ -35,12 +35,12 @@ public final class LogAction {
private static final String ACTION_LOGIN = "login";
private static final String ACTION_LOGOUT = "logout";
- private static final String ACTION_TOTAL_DISTANCE = "resetTotalDistance";
+ private static final String ACTION_DEVICE_ACCUMULATORS = "resetDeviceAccumulators";
private static final String PATTERN_OBJECT = "user: %d, action: %s, object: %s, id: %d";
private static final String PATTERN_LINK = "user: %d, action: %s, owner: %s, id: %d, property: %s, id: %d";
private static final String PATTERN_LOGIN = "user: %d, action: %s";
- private static final String PATTERN_TOTAL_DISTANCE = "user: %d, action: %s, deviceId: %d";
+ private static final String PATTERN_DEVICE_ACCUMULATORS = "user: %d, action: %s, deviceId: %d";
public static void create(long userId, BaseModel object) {
logObjectAction(ACTION_CREATE, userId, object.getClass(), object.getId());
@@ -70,8 +70,8 @@ public final class LogAction {
logLoginAction(ACTION_LOGOUT, userId);
}
- public static void resetTotalDistance(long userId, long deviceId) {
- log(String.format(PATTERN_TOTAL_DISTANCE, userId, ACTION_TOTAL_DISTANCE, deviceId));
+ public static void resetDeviceAccumulators(long userId, long deviceId) {
+ log(String.format(PATTERN_DEVICE_ACCUMULATORS, userId, ACTION_DEVICE_ACCUMULATORS, deviceId));
}
private static void logObjectAction(String action, long userId, Class<?> clazz, long objectId) {