Skip to content

Commit 5635e84

Browse files
authored
Merge pull request #918 from rolandwalker/socket-message-stderr
Send diagnostic "Connecting to socket" message to STDERR
2 parents 0d398fd + f762b50 commit 5635e84

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Bug Fixes:
1212
----------
1313
* Fixed compatibility with sqlparse 0.4 (Thanks: [mtorromeo]).
1414
* Fixed iPython magic (Thanks: [mwcm]).
15+
* Send "Connecting to socket" message to the standard error.
1516
* Respect empty string for prompt_continuation via `prompt_continuation = ''` in `.myclirc`
1617
* Fix \once -o to overwrite output whole, instead of line-by-line.
1718

mycli/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ def _connect():
438438
if not WIN and socket:
439439
socket_owner = getpwuid(os.stat(socket).st_uid).pw_name
440440
self.echo(
441-
f"Connecting to socket {socket}, owned by user {socket_owner}")
441+
f"Connecting to socket {socket}, owned by user {socket_owner}", err=True)
442442
try:
443443
_connect()
444444
except OperationalError as e:

0 commit comments

Comments
 (0)