Skip to content

Commit

Permalink
Backport PR #5807: Drop log level to info for Qt console shutdown
Browse files Browse the repository at this point in the history
At present, shutting down the Qt console displays this message in the terminal:

```
[IPythonQtConsoleApp] WARNING | shutdown: {'status': 'ok', 'restart': False}
```

I don't think this needs to be a warning - it's responding correctly to a user action. Info messages are not shown by default, so this change silences the message in the default case.
  • Loading branch information
minrk committed May 8, 2014
1 parent 86364d0 commit e112095
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IPython/qt/console/frontend_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ def _handle_stream(self, msg):
def _handle_shutdown_reply(self, msg):
""" Handle shutdown signal, only if from other console.
"""
self.log.warn("shutdown: %s", msg.get('content', ''))
self.log.info("shutdown: %s", msg.get('content', ''))
restart = msg.get('content', {}).get('restart', False)
if not self._hidden and not self._is_from_this_session(msg):
# got shutdown reply, request came from session other than ours
Expand Down

0 comments on commit e112095

Please sign in to comment.