1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2025-02-22 22:10:42 +00:00

Add bazarr version to log at start

This commit is contained in:
Halali 2018-12-05 14:38:29 +01:00
parent 2be025c12f
commit e78f3aca43
2 changed files with 8 additions and 2 deletions

View file

@ -1,7 +1,9 @@
import os
import sqlite3
import logging
import time
from cork import Cork
from configparser import ConfigParser
from get_argv import config_dir
@ -79,8 +81,6 @@ if cfg.has_section('general'):
with open(config_file, 'w+') as configfile:
cfg.write(configfile)
from cork import Cork
import time
if os.path.exists(os.path.normpath(os.path.join(config_dir, 'config/users.json'))) is False:
cork = Cork(os.path.normpath(os.path.join(config_dir, 'config')), initialize=True)

View file

@ -61,6 +61,7 @@ import ast
import hashlib
import time
import urllib
import platform
from six import text_type
from get_languages import load_language_in_db, language_from_alpha3
@ -85,6 +86,11 @@ c.execute("UPDATE system SET configured = 0, updated = 0")
conn.commit()
c.close()
logging.debug('Bazarr version: %s', bazarr_version)
logging.debug('Bazarr branch: %s', get_general_settings()[5])
logging.debug('Operating system: %s', platform.platform())
logging.debug('Python version: %s', platform.python_version())
# Load languages in database
load_language_in_db()