Skip to content

Commit

Permalink
log the project_id in init_admin_sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
nwaughachukwuma committed Nov 6, 2024
1 parent e04d354 commit ad081f2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ ANTHROPIC_API_KEY="your-anthropic-api-key"
GEMINI_API_KEY="your-gemini-api-key"
ELEVENLABS_API_KEY="your-elevenlabs-api-key"
APP_URL="http://localhost:8080"
API_URL="http://localhost:8585"
```

4. Launch the application:
Expand Down
2 changes: 0 additions & 2 deletions app/_init_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,3 @@ def init_shared_packages(paths: list[str]):

def print_project_meta():
print(f"Project root: {project_root}")
print(f"Python version: {sys.version}")
print(f"Current working directory: {os.getcwd()}")
6 changes: 3 additions & 3 deletions services/admin_sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
def init_admin_sdk():
try:
app = firebase_admin.get_app()
print(f"Firebase Admin SDK already initialized ~> {app.name}")
print(f"Firebase Admin SDK already initialized ~> {app.project_id}")
except ValueError:
firebase_admin.initialize_app()
print("Firebase Admin SDK initialized")
app = firebase_admin.initialize_app()
print(f"Firebase Admin SDK initialized ~> {app.project_id}")

0 comments on commit ad081f2

Please sign in to comment.