Skip to content

Commit c722754

Browse files
committed
error message and readme updates
1 parent f5c06b4 commit c722754

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

README.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,12 @@ Create flexible groups to share and collaborate over all of the above features
6363

6464
## ⚙️ Setup
6565

66-
Create a free account at [log10.io](https://log10.io) to get a `LOG10_TOKEN` and a `LOG10_ORG_ID`. Please add these to your environment along with `LOG10_URL=https://log10.io`.
67-
66+
1. Create a free account at [log10.io](https://log10.io)
67+
2. Set the following environment variables:
68+
- `LOG10_URL=https://log10.io`
69+
- `LOG10_TOKEN`: From the Settings tab in log10.io
70+
- `LOG10_ORG_ID`: From the Organization tab in log10.io
71+
- `OPENAI_API_KEY`: OpenAI API key
6872

6973
## 💬 Community
7074

log10/load.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ def get_session_id():
4545

4646
return res.json()['sessionID']
4747
except Exception as e:
48-
raise Exception("Failed to create LOG10 session: " + str(e))
48+
raise Exception("Failed to create LOG10 session: " + str(e) + "\nLikely cause: LOG10 env vars missing or not picked up correctly!" +
49+
"\nSee https://github.com/log10-io/log10#%EF%B8%8F-setup for details")
4950

5051

5152
# Global variable to store the current sessionID.

0 commit comments

Comments
 (0)