aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/helper/LogAction.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-08-23 18:05:35 +1200
committerGitHub <noreply@github.com>2018-08-23 18:05:35 +1200
commitcd774cc87bc88f91b8e1c881b745b9d2439db617 (patch)
treeb9b7780bcbccf9c79f1ac610779f8175b69451f0 /src/org/traccar/helper/LogAction.java
parent2a386eab0a4baed5c606113dd9a875a088f9f4e5 (diff)
parente7d5dae5af7214f7f8dac39e8d081ad6c4533d20 (diff)
downloadtraccar-server-cd774cc87bc88f91b8e1c881b745b9d2439db617.tar.gz
traccar-server-cd774cc87bc88f91b8e1c881b745b9d2439db617.tar.bz2
traccar-server-cd774cc87bc88f91b8e1c881b745b9d2439db617.zip
Merge pull request #4019 from Abyss777/device_accumulators
Implement Device Engine Hours reset
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) {