Skip to content

Commit

Permalink
Change the default logging level to INFO
Browse files Browse the repository at this point in the history
  • Loading branch information
RussellLuo committed Dec 28, 2024
1 parent 6d14cd5 commit 6c02fba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,11 @@ async def main():
)
async for chunk in result:
msg = ChatMessage.decode(chunk)
print(msg.content, end="")
print(msg.content, end="", flush=True)


if __name__ == "__main__":
set_stderr_logger("ERROR")
set_stderr_logger()
asyncio.run(main())
```

Expand Down
2 changes: 1 addition & 1 deletion coagent/core/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from loguru import logger


def set_stderr_logger(level: str = "DEBUG"):
def set_stderr_logger(level: str = "INFO"):
logger.remove()
logger.add(
sys.stderr,
Expand Down

0 comments on commit 6c02fba

Please sign in to comment.