Skip to content

Commit

Permalink
修复日志打印
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxinwei committed Jun 26, 2024
1 parent 1163b5b commit 9aebeea
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions doc/topics/meta-prog/wrapper.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,7 @@
"metadata": {},
"outputs": [],
"source": [
"from bytecode import Bytecode, Instr\n",
"\n",
"\n"
"from bytecode import Bytecode, Instr"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion src/d2py/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"""Dive into Python."""
__version__ = '0.5.12'
__version__ = '0.5.13'
2 changes: 1 addition & 1 deletion src/d2py/tasks/utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""任务型事务辅助函数"""
import asyncio
import logging
# import logging
import textwrap

async def communicate_cmd(cmd: str, cwd: str|None=None, indent: int=2, **kwds)->str:
Expand Down
4 changes: 2 additions & 2 deletions src/d2py/utils/log_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ def config_logging(
"urllib3", "markdown_it",
"ablog"
},
file_formatter: str="%(levelname)s|%(asctime)s|%(name)s| -> %(message)s\n|==>%(module)s.%(funcName)s@: %(pathname)s:%(lineno)d",
stream_formatter: str="%(levelname)s|%(asctime)s|%(name)s| -> %(message)s",
file_formatter: str="%(levelname)s|%(asctime)s|%(name)s| >>> %(message)s\n|==>%(module)s.%(funcName)s@: %(pathname)s:%(lineno)d",
stream_formatter: str="%(levelname)s|%(asctime)s|%(name)s| >>> %(message)s",
**kwargs):
"""配置 logging
Expand Down

0 comments on commit 9aebeea

Please sign in to comment.