Skip to content

Commit 2080a88

Browse files
authored
Merge pull request #130 from 1c-syntax/feature/fullLogRawMode
Полный дамп в RawMode
2 parents 1f4cb68 + 4e80386 commit 2080a88

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/main/java/com/clouds42/Commands/CoverageCommand.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@
4545
import picocli.CommandLine.Command;
4646
import picocli.CommandLine.Mixin;
4747
import picocli.CommandLine.Option;
48-
import java.lang.module.ModuleDescriptor.Version;
4948

5049
import java.io.IOException;
5150
import java.io.PrintWriter;
5251
import java.lang.invoke.MethodHandles;
52+
import java.lang.module.ModuleDescriptor.Version;
5353
import java.math.BigDecimal;
5454
import java.net.URI;
5555
import java.nio.file.Files;
@@ -232,8 +232,9 @@ private void measureResultProcessing(Map<String, URI> uriListByKey, Set<String>
232232
externalDataProcessorsUriSet.add(moduleUrl);
233233
}
234234
String moduleExtensionName = moduleId.getExtensionName();
235-
if (filterOptions.getExtensionName().equals(moduleExtensionName)
236-
&& filterOptions.getExternalDataProcessorUrl().equals(moduleUrl)) {
235+
if (rawMode
236+
|| (filterOptions.getExtensionName().equals(moduleExtensionName)
237+
&& filterOptions.getExternalDataProcessorUrl().equals(moduleUrl))) {
237238
String objectId = moduleId.getObjectID();
238239
String propertyId = moduleId.getPropertyID();
239240
String key = Utils.getUriKey(objectId, propertyId);
@@ -299,7 +300,7 @@ private void startSystem(UUID measureUuid) throws RuntimeDebugClientException {
299300
throw new RuntimeDebugClientException("Can't connect to debug server. Connection result: " + connectionResult);
300301
}
301302
}
302-
Version apiver = Version.parse(client.getApiVersion());
303+
Version apiver = Version.parse(client.getApiVersion());
303304
logger.info("Setup settings...");
304305
client.initSettings(false);
305306
client.setAutoconnectDebugTargets(
@@ -342,7 +343,7 @@ protected void gracefulShutdown(PrintWriter serverPipeOut) {
342343
}
343344

344345
Utils.dumpCoverageFile(coverageData, metadataOptions, outputOptions);
345-
if(serverPipeOut!=null) {
346+
if (serverPipeOut != null) {
346347
serverPipeOut.println(PipeMessages.OK_RESULT);
347348
}
348349
stopExecution.set(true);

0 commit comments

Comments
 (0)