Print out the location of the log file

This commit is contained in:
Raoul Snyman 2019-05-17 22:10:51 -07:00
parent 8029a8b767
commit 482b80aa82

View File

@ -30,9 +30,9 @@ import time
if sys.platform.startswith('darwin'): if sys.platform.startswith('darwin'):
print('Setting up log file')
# Only make the log file on OS X when running as a server # Only make the log file on OS X when running as a server
logfile = os.path.join(str(os.getenv('HOME')), 'Library', 'Application Support', 'openlp', 'libreofficeserver.log') logfile = os.path.join(str(os.getenv('HOME')), 'Library', 'Application Support', 'openlp', 'libreofficeserver.log')
print('Setting up log file: {logfile}'.format(logfile=logfile))
logging.basicConfig(filename=logfile, level=logging.INFO) logging.basicConfig(filename=logfile, level=logging.INFO)