|
1 | 1 | package org.code.validation.support;
|
2 | 2 |
|
3 | 3 | import static org.code.protocol.ClientMessageDetailKeys.*;
|
4 |
| -import static org.code.protocol.LoggerNames.MAIN_LOGGER; |
5 | 4 |
|
6 | 5 | import java.util.*;
|
7 | 6 | import java.util.function.Function;
|
8 |
| -import java.util.logging.Logger; |
9 | 7 | import java.util.stream.Collectors;
|
10 | 8 | import org.code.neighborhood.support.NeighborhoodSignalKey;
|
11 | 9 | import org.code.neighborhood.support.World;
|
12 |
| -import org.code.protocol.ClientMessage; |
13 |
| -import org.code.protocol.ClientMessageType; |
14 |
| -import org.code.protocol.JavabuilderContext; |
| 10 | +import org.code.protocol.*; |
15 | 11 | import org.code.validation.NeighborhoodLog;
|
16 | 12 | import org.code.validation.PainterEvent;
|
17 | 13 | import org.code.validation.PainterLog;
|
@@ -58,11 +54,12 @@ public void trackEvent(ClientMessage message) {
|
58 | 54 | }
|
59 | 55 |
|
60 | 56 | if (!this.painterTrackers.containsKey(id) || !this.isInitialized) {
|
61 |
| - Logger.getLogger(MAIN_LOGGER) |
62 |
| - .severe( |
63 |
| - String.format( |
64 |
| - "Error: received a painter event for an uninitialized painter: %s, %s\n", |
65 |
| - message.getValue(), message.getDetail())); |
| 57 | + String loggingString = |
| 58 | + String.format( |
| 59 | + "Error: received a painter event for an uninitialized painter: %s, %s\n", |
| 60 | + message.getValue(), message.getDetail()); |
| 61 | + LoggerUtils.logSevereError( |
| 62 | + (JavabuilderThrowableMessage) message, loggingString, new Throwable()); |
66 | 63 | return;
|
67 | 64 | }
|
68 | 65 |
|
|
0 commit comments