Przeglądaj źródła

Fix minor logging issues.

Timur Sağlam 4 lat temu
rodzic
commit
2d74f8b531

+ 1 - 2
cli/src/main/java/de/jplag/CLI.java

@@ -88,9 +88,8 @@ public final class CLI {
             JPlagResult result = jplag.run();
             ReportObjectFactory reportObjectFactory = new ReportObjectFactory();
             reportObjectFactory.createAndSaveReport(result, arguments.getString(RESULT_FOLDER.flagWithoutDash()));
-
         } catch (ExitException exception) {
-            logger.error(exception.getMessage(), exception);
+            logger.error(exception.getMessage()); // do not pass exception here to keep log clean
             finalizeLogger();
             System.exit(1);
         }

+ 3 - 3
core/src/main/resources/de/jplag/messages.properties

@@ -5,9 +5,9 @@ CommandLineArgument.ExcludeFile=All files named in this file will be ignored in
 CommandLineArgument.Language=Select the language to parse the submissions
 CommandLineArgument.MinTokenMatch=Tunes the comparison sensitivity by adjusting the minimum token required to be counted as a matching section. A smaller <n> increases the sensitivity but might lead to more false-positives
 CommandLineArgument.ResultFolder=Name of the directory in which the comparison results will be stored
-CommandLineArgument.RootDirectory=Root-directory with submissions to check for plagiarism
-CommandLineArgument.PlagiarismDirectory=Root-directory with submissions to check for plagiarism
-CommandLineArgument.PriorDirectory=Root-directory with prior submissions to compare against
+CommandLineArgument.RootDirectory=Root directories with submissions to check for plagiarism
+CommandLineArgument.NewDirectory=Root directories with submissions to check for plagiarism (same as the root directory)
+CommandLineArgument.OldDirectory=Root directories with prior submissions to compare against
 CommandLineArgument.ShownComparisons=The maximum number of comparisons that will be shown in the generated report, if set to -1 all comparisons will be shown
 CommandLineArgument.SimilarityThreshold=Comparison similarity threshold [0.0-1.0]: All comparisons above this threshold will be saved
 CommandLineArgument.Subdirectory=Look in directories <root-dir>/*/<dir> for programs

+ 1 - 1
language-api/src/main/java/de/jplag/LanguageLoader.java

@@ -16,7 +16,7 @@ import org.slf4j.LoggerFactory;
  * @author Dominik Fuchss
  */
 public final class LanguageLoader {
-    private static final Logger logger = LoggerFactory.getLogger(LanguageLoader.class);
+    private static final Logger logger = LoggerFactory.getLogger("JPlag");
 
     private static Map<String, Language> cachedLanguageInstances = null;