def do_whoami(self, line):
        if self.logged_in.is_set():
            self.logger.info(
                'I am %s aka %s. You can find me at %s',
                self.session.user.canonical_name,
                self.session.user.display_name,
                self.session.user.link)
        else:
            self.logger.info(
                'I am not logged in, but I may be %s',
                self.session.remembered_user)
Flushes the stream.
dataset/ETHPy150Open mopidy/pyspotify/examples/shell.py/Commander.do_whoami--crossover with--dataset/ETHPy150Open babble/babble/include/jython/Lib/logging/__init__.py/StreamHandler.flush