aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/org/traccar/helper/Log.java6
-rw-r--r--test/org/traccar/helper/LogTest.java2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/org/traccar/helper/Log.java b/src/org/traccar/helper/Log.java
index d328fbea7..c2edebd22 100644
--- a/src/org/traccar/helper/Log.java
+++ b/src/org/traccar/helper/Log.java
@@ -169,13 +169,13 @@ public class Log {
}
if (file.equals(element.getFileName())) {
- s.append("*:");
+ s.append("*");
} else {
file = element.getFileName();
- s.append(file.substring(0, file.length() - 5)).append(":");
+ s.append(file.substring(0, file.length() - 5)); // remove ".java"
count -= 1;
}
- s.append(element.getLineNumber());
+ s.append(":").append(element.getLineNumber());
} else {
skip = true;
}
diff --git a/test/org/traccar/helper/LogTest.java b/test/org/traccar/helper/LogTest.java
index 4cd617ecb..579c13e7d 100644
--- a/test/org/traccar/helper/LogTest.java
+++ b/test/org/traccar/helper/LogTest.java
@@ -7,7 +7,7 @@ public class LogTest {
@Test
public void testLog() {
- Assert.assertEquals("test - Exception (LogTest.java:10 < ...)", Log.exceptionStack(new Exception("test")));
+ Assert.assertEquals("test - Exception (LogTest:10 < ...)", Log.exceptionStack(new Exception("test")));
}
}