mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 10:16:11 +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'))
|
||||
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:
|
||||
# Only present dialog if we are going to process items
|
||||
pDialog = self.progressDialog('Incremental sync')
|
||||
log.info("incSyncIndicator=" + str(incSyncIndicator) + " totalUpdates=" + str(totalUpdates))
|
||||
|
||||
process = {
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@ class LogHandler(logging.StreamHandler):
|
|||
logging.ERROR: 0,
|
||||
logging.WARNING: 0,
|
||||
logging.INFO: 1,
|
||||
logging.DEBUG: 2,
|
||||
logging.DEBUG: 2
|
||||
}
|
||||
try:
|
||||
logLevel = int(window('emby_logLevel'))
|
||||
|
|
|
@ -298,8 +298,8 @@ class Service():
|
|||
|
||||
# Delay option
|
||||
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):
|
||||
# Start the service
|
||||
log.warn("Abort requested while waiting. Emby for kodi not started.")
|
||||
|
|
Loading…
Reference in a new issue