File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
src/com/lld/multithreadedlogging/model/message Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -11,13 +11,11 @@ public class WritableMessage {
1111 private ApplicationAwareMessage applicationAwareMessage ;
1212 private LogLevel logLevel ;
1313 private SupportedLogMedium medium ;
14- private Thread sourceThread ;
1514
1615 public WritableMessage (ApplicationAwareMessage applicationAwareMessage , LogLevel logLevel , SupportedLogMedium medium ) {
1716 this .applicationAwareMessage = applicationAwareMessage ;
1817 this .logLevel = logLevel ;
1918 this .medium = medium ;
20- this .sourceThread = applicationAwareMessage .getThread ();
2119 }
2220
2321 public SupportedLogMedium getMedium () {
@@ -27,7 +25,7 @@ public SupportedLogMedium getMedium() {
2725 @ Override
2826 public String toString () {
2927 return "Log Level = " + logLevel
30- + " Thread - " + sourceThread .getName ()
28+ + " Thread - " + applicationAwareMessage . getThread () .getName ()
3129 + " timestamp = " + applicationAwareMessage .getTime ().toString ()
3230 + " message = " + applicationAwareMessage .getMsg ();
3331 }
You can’t perform that action at this time.
0 commit comments