Skip to content

Commit

Permalink
fix incorrect strutlog usage throwing an error when setup fails
Browse files Browse the repository at this point in the history
  • Loading branch information
technillogue committed Jul 26, 2024
1 parent 9f49b29 commit bb6f901
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/cog/server/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ async def async_init(self) -> None:
# mp may have handled something already but let's dup so exit is clean
dup_fd = os.dup(fd)
sock = socket.socket(fileno=dup_fd)
sock.setblocking(False)
sock.setblocking(True)
# TODO: use /proc/sys/net/core/rmem_max, but special-case language models
sz = 65536
sock.setsockopt(socket.SOL_SOCKET, socket.SO_RCVBUF, sz)
Expand Down
2 changes: 1 addition & 1 deletion python/cog/server/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ async def inner() -> SetupResult:
logs.append(traceback.format_exc())
status = schema.Status.FAILED
except BaseException:
self.log("caught BaseException during setup, did something go wrong?")
self.log.info("caught BaseException during setup, did something go wrong?")
logs.append(traceback.format_exc())
status = schema.Status.FAILED

Expand Down

0 comments on commit bb6f901

Please sign in to comment.