mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
Clean up logging
Moved incremental log line to display only if there's actual items to process.
This commit is contained in:
parent
32163117c9
commit
5895831ba8
3 changed files with 3 additions and 3 deletions
|
@ -807,11 +807,11 @@ class LibrarySync(threading.Thread):
|
||||||
|
|
||||||
incSyncIndicator = int(settings('incSyncIndicator'))
|
incSyncIndicator = int(settings('incSyncIndicator'))
|
||||||
totalUpdates = len(self.addedItems) + len(self.updateItems) + len(self.userdataItems) + len(self.removeItems)
|
totalUpdates = len(self.addedItems) + len(self.updateItems) + len(self.userdataItems) + len(self.removeItems)
|
||||||
log.info("incSyncIndicator=" + str(incSyncIndicator) + " totalUpdates=" + str(totalUpdates))
|
|
||||||
|
|
||||||
if incSyncIndicator != -1 and totalUpdates > incSyncIndicator:
|
if incSyncIndicator != -1 and totalUpdates > incSyncIndicator:
|
||||||
# Only present dialog if we are going to process items
|
# Only present dialog if we are going to process items
|
||||||
pDialog = self.progressDialog('Incremental sync')
|
pDialog = self.progressDialog('Incremental sync')
|
||||||
|
log.info("incSyncIndicator=" + str(incSyncIndicator) + " totalUpdates=" + str(totalUpdates))
|
||||||
|
|
||||||
process = {
|
process = {
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@ class LogHandler(logging.StreamHandler):
|
||||||
logging.ERROR: 0,
|
logging.ERROR: 0,
|
||||||
logging.WARNING: 0,
|
logging.WARNING: 0,
|
||||||
logging.INFO: 1,
|
logging.INFO: 1,
|
||||||
logging.DEBUG: 2,
|
logging.DEBUG: 2
|
||||||
}
|
}
|
||||||
try:
|
try:
|
||||||
logLevel = int(window('emby_logLevel'))
|
logLevel = int(window('emby_logLevel'))
|
||||||
|
|
|
@ -298,8 +298,8 @@ class Service():
|
||||||
|
|
||||||
# Delay option
|
# Delay option
|
||||||
delay = int(settings('startupDelay'))
|
delay = int(settings('startupDelay'))
|
||||||
|
log.warn("Delaying emby startup by: %s sec..." % delay)
|
||||||
|
|
||||||
log.info("Delaying emby startup by: %s sec..." % delay)
|
|
||||||
if delay and xbmc.Monitor().waitForAbort(delay):
|
if delay and xbmc.Monitor().waitForAbort(delay):
|
||||||
# Start the service
|
# Start the service
|
||||||
log.warn("Abort requested while waiting. Emby for kodi not started.")
|
log.warn("Abort requested while waiting. Emby for kodi not started.")
|
||||||
|
|
Loading…
Reference in a new issue