Skip to content

Commit

Permalink
Merge pull request #5 from cleyrop/fix/statement_logs
Browse files Browse the repository at this point in the history
Fix/statement logs
  • Loading branch information
jean-humann authored Nov 15, 2023
2 parents 00368e4 + 64dae21 commit 669d6d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github/workflows/clean.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ jobs:
LOWER_BRANCH=${{ github.event.pull_request.head.ref }}
SLUG_BRANCH=$(echo "$LOWER_BRANCH" | sed -e 's/[^a-zA-Z0-9]/-/g' -e 's/--/-/g')
echo "BASE_REF=$SLUG_BRANCH" >> $GITHUB_ENV
fi
- name: Delete tag on PR close or merge
if: github.event_name == 'pull_request' && github.event.action == 'closed'
env:
Expand Down
3 changes: 2 additions & 1 deletion server/src/main/resources/shell_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ def __init__(self, globals) -> None:
def _error_response(self, error):
exc_type, exc_value, exc_tb = sys.exc_info()
return {
"content": {"text/plain": str(sys.stdout.getvalue()).rstrip()},
"error": type(error).__name__,
"message": str(error),
"traceback": traceback.format_exception(exc_type, exc_value, exc_tb),
Expand Down Expand Up @@ -144,8 +145,8 @@ def main():
log.info("Starting session loop")
try:
while True:
setup_output()
for command in controller.read():
setup_output()
log.debug(f"Processing command {command}")
result = handler.exec(command)
controller.write(command["id"], result)
Expand Down

0 comments on commit 669d6d1

Please sign in to comment.