Skip to content

Commit

Permalink
Merge pull request #1059 from kga245/remove-server_log.txt
Browse files Browse the repository at this point in the history
Remove server log.txt
  • Loading branch information
assafelovic authored Jan 5, 2025
2 parents 4a35e85 + 462cce9 commit 079be67
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,6 @@ package-lock.json

# Log files
logs/
*.orig
*.orig
*.log
server_log.txt
18 changes: 18 additions & 0 deletions backend/server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,24 @@
)


from gpt_researcher.utils.logging_config import setup_research_logging

import logging

# Get logger instance
logger = logging.getLogger(__name__)

# Don't override parent logger settings
logger.propagate = True

logging.basicConfig(
level=logging.INFO,
format="%(asctime)s - %(levelname)s - %(message)s",
handlers=[
logging.StreamHandler() # Only log to console
]
)

# Models


Expand Down

0 comments on commit 079be67

Please sign in to comment.