mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
Python: make interpreter logs less verbose
This commit is contained in:
parent
744f7d23d6
commit
3cafa22f42
1 changed files with 2 additions and 2 deletions
|
|
@ -192,7 +192,7 @@ public class PythonInterpreter extends Interpreter {
|
|||
|
||||
private String sendCommandToPython(String cmd) {
|
||||
String output = "";
|
||||
logger.info("Sending : \n " + cmd);
|
||||
logger.info("Sending : \n" + (cmd.length() > 200 ? cmd.substring(0, 120) + "..." : cmd));
|
||||
try {
|
||||
output = process.sendAndGetResult(cmd);
|
||||
} catch (IOException e) {
|
||||
|
|
@ -214,7 +214,7 @@ public class PythonInterpreter extends Interpreter {
|
|||
if (py4J && port != null && port != -1) {
|
||||
bootstrapCode = bootstrapCode.replaceAll("\\%PORT\\%", port.toString());
|
||||
}
|
||||
logger.info("Bootstrap python interpreter with \n " + bootstrapCode);
|
||||
logger.info("Bootstrap python interpreter with code from \n " + file);
|
||||
sendCommandToPython(bootstrapCode);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue