Skip to content

Commit

Permalink
Switch print statements with logmsg
Browse files Browse the repository at this point in the history
  • Loading branch information
ziotom78 committed May 25, 2023
1 parent 9660613 commit 8489d41
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions program_batch_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,15 +129,19 @@ def main(stdscr):
stdscr.keypad(True)

if not args.dry_run:
print(f"{len(cur_json_procedure)} commands ready to be executed, let's go!")
print("Going to establish a connection with the server…")
logmsg(
stdscr,
f"{len(cur_json_procedure)} commands ready to be executed, let's go!",
)
logmsg(stdscr, "Going to establish a connection with the server…")
conn = StripConnection(use_fast_socket=not args.https_connection)
conn.login()
if close_tags(stdscr, conn):
return

print(
"…connection established, fast socket connection is {'enabled' if conn.use_fast_socket else 'disabled'}"
logmsg(
stdscr,
"…connection established, fast socket connection is {'enabled' if conn.use_fast_socket else 'disabled'}",
)

if (not args.dry_run) and (not args.do_not_round):
Expand Down

0 comments on commit 8489d41

Please sign in to comment.