aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/database
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-11-09 10:58:05 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-11-09 10:58:05 +1300
commit3391586058e1b0cdb0c9245ed353f592436faa53 (patch)
tree01f5a5cd507ed3a91b8ba1c6a2c1afaf67928ea7 /src/org/traccar/database
parent9ec7166889b9b0492a18a338e6dc5352743209b8 (diff)
downloadtrackermap-server-3391586058e1b0cdb0c9245ed353f592436faa53.tar.gz
trackermap-server-3391586058e1b0cdb0c9245ed353f592436faa53.tar.bz2
trackermap-server-3391586058e1b0cdb0c9245ed353f592436faa53.zip
Change log messages formatting
Diffstat (limited to 'src/org/traccar/database')
-rw-r--r--src/org/traccar/database/ConnectionManager.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/org/traccar/database/ConnectionManager.java b/src/org/traccar/database/ConnectionManager.java
index 8ef171673..6d1266132 100644
--- a/src/org/traccar/database/ConnectionManager.java
+++ b/src/org/traccar/database/ConnectionManager.java
@@ -17,6 +17,7 @@ package org.traccar.database;
import java.net.SocketAddress;
import java.sql.SQLException;
+import java.text.SimpleDateFormat;
import java.util.Collection;
import java.util.Date;
import java.util.HashMap;
@@ -69,7 +70,8 @@ public class ConnectionManager {
public synchronized void updateDevice(long deviceId, String status, Date time) {
// TODO update cache and call listener
- Log.debug(deviceId + " " + status + " " + time);
+ Log.debug(deviceId + " " + status + " "
+ + new SimpleDateFormat(Log.DATE_FORMAT).format(time));
}
public synchronized void updatePosition(Position position) {