Skip to content

Commit

Permalink
update name of logs file
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelPesce committed Jan 24, 2024
1 parent 097c767 commit 03a5ffe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion backend/app/internal/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def validate_log_dir(cls, v):
v.mkdir(parents=True, exist_ok=True)

loggingFormat = "[%(levelname)s] %(asctime)s %(name)s (%(filename)s:%(lineno)s): %(message)s"
loggingFileHandler = logging.handlers.RotatingFileHandler(v / "ui_backend_logs.log", backupCount=2, maxBytes=5000000)
loggingFileHandler = logging.handlers.RotatingFileHandler(v / "watertap-ui_backend_logs.log", backupCount=2, maxBytes=5000000)
logging.basicConfig(level=logging.INFO, format=loggingFormat, handlers=[loggingFileHandler])
return v

Expand Down
4 changes: 2 additions & 2 deletions backend/app/routers/flowsheets.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ async def get_logs() -> List[str]:
Returns:
Logs formatted as a list
"""
logs_path = flowsheet_manager.get_logs_path() / "ui_backend_logs.log"
logs_path = flowsheet_manager.get_logs_path() / "watertap-ui_backend_logs.log"
return parse_logs(logs_path, flowsheet_manager.startup_time)

@router.post("/download_logs", response_class=FileResponse)
Expand All @@ -493,5 +493,5 @@ async def download_logs() -> Path:
Returns:
Log file
"""
logs_path = flowsheet_manager.get_logs_path() / "ui_backend_logs.log"
logs_path = flowsheet_manager.get_logs_path() / "watertap-ui_backend_logs.log"
return logs_path

0 comments on commit 03a5ffe

Please sign in to comment.