-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ZEPPELIN-6140] Add logs to the runParagraph method #4889
[ZEPPELIN-6140] Add logs to the runParagraph method #4889
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only minor changes. A uniform appearance in the logs is important to me. We should avoid using “Paragraph with ID xzy” once and “Paragraph xyz” once.
if (note == null) { | ||
LOGGER.info("Failed to run paragraph: Note is null"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LOGGER.info("Failed to run paragraph: Note is null"); | |
LOGGER.info("Failed to run paragraph {}, Note is null", paragraphId); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Reamer
I have completed this task. :)
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()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LOGGER.info("Permission check failed for running paragraph: {} of note: {}", paragraphId, note.getId()); | |
LOGGER.info("Permission check failed for running paragraph {} of note {}", paragraphId, note.getId()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Reamer
I have completed this task. :)
Paragraph p = note.getParagraph(paragraphId); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Reamer
I have completed this task. :)
zeppelin-server/src/main/java/org/apache/zeppelin/service/NotebookService.java
Show resolved
Hide resolved
if (p == null) { | ||
LOGGER.info("Paragraph with ID {} not found in note: {}", paragraphId, note.getId()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LOGGER.info("Paragraph with ID {} not found in note: {}", paragraphId, note.getId()); | |
LOGGER.info("Paragraph {} not found in note {}", paragraphId, note.getId()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Reamer
I have completed this task. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
### What is this PR for? This involves revising the description of the runParagraph method and adding clear logs for each step. ### What type of PR is it? Improvement ### Todos * [x] - NotebookService.java ### What is the Jira issue? * https://issues.apache.org/jira/projects/ZEPPELIN/issues/ZEPPELIN-6140 ### How should this be tested? * Debugging ### Screenshots (if appropriate) ![image](https://github.com/user-attachments/assets/a833a92f-1a0b-42e5-9b3c-084fa351a4c7) ### Questions: * Does the license files need to update? No. * Is there breaking changes for older versions? No. * Does this needs documentation? No. Closes #4889 from ParkGyeongTae/add-logs-to-the-runparagraph-method. Signed-off-by: Philipp Dallig <[email protected]>
Merged into master/branch-0.12 |
What is this PR for?
This involves revising the description of the runParagraph method and adding clear logs for each step.
What type of PR is it?
Improvement
Todos
What is the Jira issue?
How should this be tested?
Screenshots (if appropriate)
Questions: