mirror of
https://github.com/kirill-markin/repo-to-text.git
synced 2025-12-05 19:12:24 -08:00
logging cleanup
This commit is contained in:
parent
becb1959d3
commit
afa2791a70
1 changed files with 1 additions and 1 deletions
|
|
@ -126,7 +126,7 @@ def save_repo_to_text(path='.', output_dir=None) -> str:
|
|||
with open(file_path, 'r', encoding='utf-8') as f:
|
||||
file.write(f.read())
|
||||
except UnicodeDecodeError:
|
||||
logging.error(f'Could not decode file contents: {file_path}')
|
||||
logging.debug(f'Could not decode file contents: {file_path}')
|
||||
file.write('[Could not decode file contents]\n')
|
||||
file.write('\n```\n')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue