Adding python version to the log
This commit is contained in:
@@ -103,6 +103,7 @@ def main():
|
|||||||
filename=config['log'],
|
filename=config['log'],
|
||||||
format='%(asctime)s:%(levelname)s:%(filename)s:%(lineno)d:%(message)s')
|
format='%(asctime)s:%(levelname)s:%(filename)s:%(lineno)d:%(message)s')
|
||||||
_logger.info('Starting new session, RTV v%s', __version__)
|
_logger.info('Starting new session, RTV v%s', __version__)
|
||||||
|
_logger.info('%s, %s', sys.executable, sys.version)
|
||||||
env = [
|
env = [
|
||||||
('$DISPLAY', os.getenv('DISPLAY')),
|
('$DISPLAY', os.getenv('DISPLAY')),
|
||||||
('$XDG_CONFIG_HOME', os.getenv('XDG_CONFIG_HOME')),
|
('$XDG_CONFIG_HOME', os.getenv('XDG_CONFIG_HOME')),
|
||||||
@@ -111,6 +112,7 @@ def main():
|
|||||||
('$RTV_EDITOR', os.getenv('RTV_EDITOR')),
|
('$RTV_EDITOR', os.getenv('RTV_EDITOR')),
|
||||||
('$RTV_URLVIEWER', os.getenv('RTV_URLVIEWER'))]
|
('$RTV_URLVIEWER', os.getenv('RTV_URLVIEWER'))]
|
||||||
_logger.info('Environment: %s', env)
|
_logger.info('Environment: %s', env)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
# Add an empty handler so the logger doesn't complain
|
# Add an empty handler so the logger doesn't complain
|
||||||
logging.root.addHandler(logging.NullHandler())
|
logging.root.addHandler(logging.NullHandler())
|
||||||
|
|||||||
Reference in New Issue
Block a user