Reamer commented on code in PR #4889:
URL: https://github.com/apache/zeppelin/pull/4889#discussion_r1829114672


##########
zeppelin-server/src/main/java/org/apache/zeppelin/service/NotebookService.java:
##########
@@ -420,22 +427,25 @@ public boolean runParagraph(Note note,
                               ServiceContext context,
                               ServiceCallback<Paragraph> callback) throws 
IOException {
 
-
     if (note == null) {
+      LOGGER.info("Failed to run paragraph: Note is null");
       return false;
     }
     LOGGER.info("Start to run paragraph: {} of note: {}", paragraphId, 
note.getId());
     if (!checkPermission(note.getId(), Permission.RUNNER, 
Message.OP.RUN_PARAGRAPH, context, callback)) {
+      LOGGER.info("Permission check failed for running paragraph: {} of note: 
{}", paragraphId, note.getId());

Review Comment:
   ```suggestion
         LOGGER.info("Permission check failed for running paragraph {} of note 
{}", paragraphId, note.getId());
   ```



##########
zeppelin-server/src/main/java/org/apache/zeppelin/service/NotebookService.java:
##########
@@ -420,22 +427,25 @@ public boolean runParagraph(Note note,
                               ServiceContext context,
                               ServiceCallback<Paragraph> callback) throws 
IOException {
 
-
     if (note == null) {
+      LOGGER.info("Failed to run paragraph: Note is null");
       return false;
     }
     LOGGER.info("Start to run paragraph: {} of note: {}", paragraphId, 
note.getId());
     if (!checkPermission(note.getId(), Permission.RUNNER, 
Message.OP.RUN_PARAGRAPH, context, callback)) {
+      LOGGER.info("Permission check failed for running paragraph: {} of note: 
{}", paragraphId, note.getId());
       return false;
     }
 
-
     Paragraph p = note.getParagraph(paragraphId);
+

Review Comment:
   ```suggestion
   ```



##########
zeppelin-server/src/main/java/org/apache/zeppelin/service/NotebookService.java:
##########
@@ -420,22 +427,25 @@ public boolean runParagraph(Note note,
                               ServiceContext context,
                               ServiceCallback<Paragraph> callback) throws 
IOException {
 
-
     if (note == null) {
+      LOGGER.info("Failed to run paragraph: Note is null");
       return false;
     }
     LOGGER.info("Start to run paragraph: {} of note: {}", paragraphId, 
note.getId());
     if (!checkPermission(note.getId(), Permission.RUNNER, 
Message.OP.RUN_PARAGRAPH, context, callback)) {
+      LOGGER.info("Permission check failed for running paragraph: {} of note: 
{}", paragraphId, note.getId());
       return false;
     }
 
-
     Paragraph p = note.getParagraph(paragraphId);
+
     if (p == null) {
+      LOGGER.info("Paragraph with ID {} not found in note: {}", paragraphId, 
note.getId());

Review Comment:
   ```suggestion
         LOGGER.info("Paragraph {} not found in note {}", paragraphId, 
note.getId());
   ```



##########
zeppelin-server/src/main/java/org/apache/zeppelin/service/NotebookService.java:
##########
@@ -420,22 +427,25 @@ public boolean runParagraph(Note note,
                               ServiceContext context,
                               ServiceCallback<Paragraph> callback) throws 
IOException {
 
-
     if (note == null) {
+      LOGGER.info("Failed to run paragraph: Note is null");

Review Comment:
   ```suggestion
         LOGGER.info("Failed to run paragraph {}, Note is null", paragraphId);
   ```



##########
zeppelin-server/src/main/java/org/apache/zeppelin/service/NotebookService.java:
##########
@@ -420,22 +427,25 @@ public boolean runParagraph(Note note,
                               ServiceContext context,
                               ServiceCallback<Paragraph> callback) throws 
IOException {
 
-
     if (note == null) {
+      LOGGER.info("Failed to run paragraph: Note is null");
       return false;
     }
     LOGGER.info("Start to run paragraph: {} of note: {}", paragraphId, 
note.getId());
     if (!checkPermission(note.getId(), Permission.RUNNER, 
Message.OP.RUN_PARAGRAPH, context, callback)) {
+      LOGGER.info("Permission check failed for running paragraph: {} of note: 
{}", paragraphId, note.getId());
       return false;
     }
 
-

Review Comment:
   Please add the line again.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to