Skip to content

Commit

Permalink
CTX-6123: Discussion changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bogdan Tintor committed Aug 26, 2024
1 parent 114e51b commit 8b07079
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion coretex/cli/modules/intercept.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@ def handleException(self, ctx: click.Context, exc: BaseException) -> None:
logFiles = list(logPath.glob("*.log"))
latestLogFile = max(logFiles, key = lambda f: f.stat().st_mtime)

errorEcho(f"Exception: {str(exc)}.\nYou can see detailed logs here: {latestLogFile}")
errorEcho(f"An error occured. You can see the detailed logs at {latestLogFile}")
logging.getLogger("cli").debug(exc, exc_info = exc)
2 changes: 1 addition & 1 deletion coretex/cli/modules/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def getTagFromImageUrl(image: str) -> str:
return "latest"


def shouldUpdate(image: str, ) -> bool:
def shouldUpdate(image: str) -> bool:
repository = getRepoFromImageUrl(image)
try:
imageJson = docker.imageInspect(image, CLISettings.verbose)
Expand Down
5 changes: 1 addition & 4 deletions coretex/cli/modules/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,7 @@ def wrapper(*args: Any, **kwargs: Any) -> Any:
if param["name"] == "verbose" and param["flag_value"] == True:
CLISettings.verbose = True
except:
pass

# if ctx.params.get('verbose'):
# VERBOSE = True
CLISettings.verbose = False

if click.get_current_context().invoked_subcommand in excludeSubcommands:
return f(*args, **kwargs)
Expand Down

0 comments on commit 8b07079

Please sign in to comment.