| | |
| | | |
| | | int exitCode = process.waitFor(); |
| | | if (exitCode != 0) { |
| | | System.out.println("Python script exited with error code: " + exitCode); |
| | | log.error("Python script exited with error code: {}", exitCode); |
| | | log.error("python error:{}", builder.toString()); |
| | | return; |
| | | } |
| | | reader.close(); |
| | |
| | | |
| | | if (!Cools.isEmpty(result)) { |
| | | if (!"1".equals(result)) { |
| | | log.error("Fail python"); |
| | | log.error("Failed to call python"); |
| | | } |
| | | } |
| | | } catch (IOException | InterruptedException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | log.error("python finish {}", System.currentTimeMillis() - startTime); |
| | | // log.error("python finish {}", System.currentTimeMillis() - startTime); |
| | | |
| | | // java |
| | | // String[][] codeMatrix = mapDataDispatcher.getCodeMatrix(lev); |