summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorael-code <tommy.ael@gmail.com>2016-11-10 17:26:00 +0100
committerael-code <tommy.ael@gmail.com>2016-11-25 17:37:27 +0100
commit3b7a9b18507261b7e734ec4d8180b71e199e3b21 (patch)
tree021993c8e4562b97037b0c654b27502b7f48f178
parent77f6c349f56ecf27c91cb394156c222e8525032e (diff)
downloadranger-3b7a9b18507261b7e734ec4d8180b71e199e3b21.tar.gz
Move startup log calls in main function
-rw-r--r--ranger/core/fm.py5
-rw-r--r--ranger/core/main.py5
2 files changed, 5 insertions, 5 deletions
diff --git a/ranger/core/fm.py b/ranger/core/fm.py
index 724d09d5..5d630464 100644
--- a/ranger/core/fm.py
+++ b/ranger/core/fm.py
@@ -26,7 +26,6 @@ from ranger.core.metadata import MetadataManager
 from ranger.ext.rifle import Rifle
 from ranger.container.directory import Directory
 from ranger.ext.signals import SignalDispatcher
-from ranger import __version__
 from ranger.core.loader import Loader
 from ranger.ext import logutils
 
@@ -74,10 +73,6 @@ class FM(Actions, SignalDispatcher):
         self.hostname = socket.gethostname()
         self.home_path = os.path.expanduser('~')
 
-        log.info('ranger {0} started! Process ID is {1}'
-                .format(__version__, os.getpid()))
-        log.info('Running on Python ' + sys.version.replace('\n', ''))
-
         mimetypes.knownfiles.append(os.path.expanduser('~/.mime.types'))
         mimetypes.knownfiles.append(self.relpath('data/mime.types'))
         self.mimetypes = mimetypes.MimeTypes()
diff --git a/ranger/core/main.py b/ranger/core/main.py
index 55e1243b..b0e3b600 100644
--- a/ranger/core/main.py
+++ b/ranger/core/main.py
@@ -6,6 +6,7 @@
 import os.path
 import sys
 import tempfile
+from ranger import __version__
 from logging import getLogger
 
 log = getLogger(__name__)
@@ -23,6 +24,10 @@ def main():
     ranger.arg = arg = parse_arguments()
     setup_logging(debug=arg.debug, logfile=arg.logfile)
 
+    log.info("Ranger version {0}".format(__version__))
+    log.info('Running on Python ' + sys.version.replace('\n', ''))
+    log.info("Process ID is {0}".format(os.getpid()))
+
     try:
         locale.setlocale(locale.LC_ALL, '')
     except Exception: