Skip to content

Commit 48258ec

Browse files
endothermicdevrustyrussell
authored andcommitted
reckless: correct logging levels
Some output was hidden under normal operation which should not have been.
1 parent fe58c73 commit 48258ec

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tools/reckless

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -677,8 +677,8 @@ class Config():
677677
# FIXME: Handle write failure
678678
return default_text
679679
else:
680-
log.debug('could not create the parent directory ' +
681-
parent_path)
680+
log.warning('could not create the parent directory ' +
681+
parent_path)
682682
raise FileNotFoundError('invalid parent directory')
683683

684684
def editConfigFile(self, addline: Union[str, None],
@@ -874,7 +874,6 @@ def create_python3_venv(staged_plugin: InstInfo) -> InstInfo:
874874
else:
875875
log.debug("no python dependency file")
876876
if pip and pip.returncode != 0:
877-
log.debug("install to virtual environment failed")
878877
log.error('error encountered installing dependencies')
879878
raise InstallationFailure
880879

@@ -1191,7 +1190,7 @@ def _install_plugin(src: InstInfo) -> Union[InstInfo, None]:
11911190
cloned_src = _source_search(src.name, str(clone_path))
11921191
log.debug(f'cloned_src: {cloned_src}')
11931192
if not cloned_src:
1194-
log.debug('failed to find plugin after cloning repo.')
1193+
log.warning('failed to find plugin after cloning repo.')
11951194
return None
11961195

11971196
# If a specific commit or tag was requested, check it out now.
@@ -1211,7 +1210,8 @@ def _install_plugin(src: InstInfo) -> Union[InstInfo, None]:
12111210
INSTALLER = inst_method
12121211
break
12131212
if not INSTALLER:
1214-
log.debug('Could not find a suitable installer method.')
1213+
log.warning('Could not find a suitable installer method for '
1214+
f'{src.name}')
12151215
return None
12161216
if not cloned_src.entry:
12171217
# The plugin entrypoint may not be discernable prior to cloning.
@@ -1395,7 +1395,7 @@ def search(plugin_name: str) -> Union[InstInfo, None]:
13951395
# Stashing the search result saves install() a call to _source_search.
13961396
LAST_FOUND = found
13971397
return str(found.source_loc)
1398-
log.debug("Search exhausted all sources")
1398+
log.info("Search exhausted all sources")
13991399
return None
14001400

14011401

0 commit comments

Comments
 (0)