JesseRWeigel / JesseRWeigel/github-chatGPT-plugin

Fix list_files

Open
#2 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
13
Forks
1
PR merge metrics
No merged PRs in 30d

Description

I am not sure why, but list-files isn't working. My next step would be to add some debugging. This example may help:
```
import logging
from quart import Quart, jsonify

# Configure logging settings
logging.basicConfig(filename='app.log', level=logging.DEBUG, format='%(asctime)s - %(levelname)s - %(message)s')

app = Quart(__name__)

@app.route('/')
async def index():
# Add an info log message
logging.info('Index route was accessed')
return jsonify({'message': 'Hello, World!'})

@app.route('/error')
async def error():
try:
# Simulate an error
result = 1 / 0
except Exception as e:
# Add an error log message with exception details
logging.error(f'An error occurred: {e}')
return jsonify({'error': 'An error occurred'}), 500

return jsonify({'result': result})

if __name__ == '__main__':
app.run(debug=True, host='0.0.0.0', port=5003)
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.