Skip to content

Commit

Permalink
- removed client logfile
Browse files Browse the repository at this point in the history
- printing cli parsing error message to stdout
  • Loading branch information
keinproblem committed Jun 24, 2018
1 parent 44bc784 commit c2a4323
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ private void deleteSamplingMessage(CommandLine commandLine, SamplingMessageGrpc.
* @param errorMessage Message to be displayed on the console during the program shutdown
*/
private void exitWithError(String errorMessage) {
log.error(errorMessage);
System.out.println(errorMessage);
this.exitWithHelpScreen(1);
}

Expand Down
4 changes: 0 additions & 4 deletions sampling-message-client/src/main/resources/log4j2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,10 @@
<Console name="Console" target="SYSTEM_OUT">
<PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/>
</Console>
<File name="MyFile" fileName="all.log" immediateFlush="false" append="false">
<PatternLayout pattern="%d{yyy-MM-dd HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/>
</File>
</Appenders>
<Loggers>
<Root level="INFO">
<AppenderRef ref="Console"/>
<!-- <AppenderRef ref="MyFile"/> -->
</Root>
</Loggers>
</Configuration>
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public static void main(String[] args) {
* @param errorMessage Message to be displayed on the console during the program shutdown
*/
private static void exitWithError(final String errorMessage) {
log.error(errorMessage);
System.out.println(errorMessage);
exitWithHelpScreen(1);
}

Expand Down

0 comments on commit c2a4323

Please sign in to comment.