fix postProcessFile log message (#1028)

This commit is contained in:
William Cheng 2018-09-15 18:29:30 +08:00 committed by GitHub
parent fe0f2cfad6
commit b909656418
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 15 additions and 15 deletions

View File

@ -639,12 +639,12 @@ public abstract class AbstractGoCodegen extends DefaultCodegen implements Codege
Process p = Runtime.getRuntime().exec(command); Process p = Runtime.getRuntime().exec(command);
p.waitFor(); p.waitFor();
if (p.exitValue() != 0) { if (p.exitValue() != 0) {
LOGGER.error("Error running the command ({}): {}", command, p.exitValue()); LOGGER.error("Error running the command ({}). Exit code: {}", command, p.exitValue());
} }
LOGGER.info("Successfully executed: " + command);
} catch (Exception e) { } catch (Exception e) {
LOGGER.error("Error running the command ({}): {}", command, e.getMessage()); LOGGER.error("Error running the command ({}). Exception: {}", command, e.getMessage());
} }
LOGGER.info("Successfully executed: " + command);
} }
} }
} }

View File

@ -539,12 +539,12 @@ public class DartClientCodegen extends DefaultCodegen implements CodegenConfig {
Process p = Runtime.getRuntime().exec(command); Process p = Runtime.getRuntime().exec(command);
p.waitFor(); p.waitFor();
if (p.exitValue() != 0) { if (p.exitValue() != 0) {
LOGGER.error("Error running the command ({}): {}", command, p.exitValue()); LOGGER.error("Error running the command ({}). Exit code: {}", command, p.exitValue());
} }
LOGGER.info("Successfully executed: " + command);
} catch (Exception e) { } catch (Exception e) {
LOGGER.error("Error running the command ({}): {}", command, e.getMessage()); LOGGER.error("Error running the command ({}). Exception: {}", command, e.getMessage());
} }
LOGGER.info("Successfully executed: " + command);
} }
} }
} }

View File

@ -657,12 +657,12 @@ public class ElmClientCodegen extends DefaultCodegen implements CodegenConfig {
Process p = Runtime.getRuntime().exec(command); Process p = Runtime.getRuntime().exec(command);
p.waitFor(); p.waitFor();
if (p.exitValue() != 0) { if (p.exitValue() != 0) {
LOGGER.error("Error running the command ({}): {}", command, p.exitValue()); LOGGER.error("Error running the command ({}). Exit code: {}", command, p.exitValue());
} }
LOGGER.info("Successfully executed: " + command);
} catch (Exception e) { } catch (Exception e) {
LOGGER.error("Error running the command ({}): {}", command, e.getMessage()); LOGGER.error("Error running the command ({}). Exception: {}", command, e.getMessage());
} }
LOGGER.info("Successfully executed: " + command);
} }
} }
} }

View File

@ -1179,12 +1179,12 @@ public class JavascriptClientCodegen extends DefaultCodegen implements CodegenCo
Process p = Runtime.getRuntime().exec(command); Process p = Runtime.getRuntime().exec(command);
p.waitFor(); p.waitFor();
if (p.exitValue() != 0) { if (p.exitValue() != 0) {
LOGGER.error("Error running the command ({}): {}", command, p.exitValue()); LOGGER.error("Error running the command ({}). Exit code: {}", command, p.exitValue());
} }
LOGGER.info("Successfully executed: " + command);
} catch (Exception e) { } catch (Exception e) {
LOGGER.error("Error running the command ({}): {}", command, e.getMessage()); LOGGER.error("Error running the command ({}). Exception: {}", command, e.getMessage());
} }
LOGGER.info("Successfully executed: " + command);
} }
} }

View File

@ -585,12 +585,12 @@ public class PerlClientCodegen extends DefaultCodegen implements CodegenConfig {
Process p = Runtime.getRuntime().exec(command); Process p = Runtime.getRuntime().exec(command);
p.waitFor(); p.waitFor();
if (p.exitValue() != 0) { if (p.exitValue() != 0) {
LOGGER.error("Error running the command ({}): {}", command, p.exitValue()); LOGGER.error("Error running the command ({}). Exit code: {}", command, p.exitValue());
} }
LOGGER.info("Successfully executed: " + command);
} catch (Exception e) { } catch (Exception e) {
LOGGER.error("Error running the command ({}): {}", command, e.getMessage()); LOGGER.error("Error running the command ({}). Exception: {}", command, e.getMessage());
} }
LOGGER.info("Successfully executed: " + command);
} }
} }
} }