Small Logging Improvement (#3389)
This commit is contained in:
parent
17a5d0d583
commit
349645bf32
4 changed files with 26 additions and 31 deletions
|
@ -118,8 +118,6 @@ public class CacheService : ICacheService
|
|||
Cache.MaxFiles = originalCacheSize;
|
||||
}
|
||||
|
||||
_logger.LogDebug("File Dimensions call for {Length} images took {Time}ms", dimensions.Count, sw.ElapsedMilliseconds);
|
||||
|
||||
return dimensions;
|
||||
}
|
||||
|
||||
|
|
|
@ -345,7 +345,7 @@ public class ScrobblingService : IScrobblingService
|
|||
|
||||
_unitOfWork.ScrobbleRepository.Attach(evt);
|
||||
await _unitOfWork.CommitAsync();
|
||||
_logger.LogDebug("Added Scrobbling Read update on {SeriesName} with Userid {UserId} ", series.Name, userId);
|
||||
_logger.LogDebug("Added Scrobbling Read update on {SeriesName} - Volume: {VolumeNumber} Chapter: {ChapterNumber} for User: {UserId}", series.Name, evt.VolumeNumber, evt.ChapterNumber, userId);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
|
|
@ -291,6 +291,7 @@ public class ReaderService : IReaderService
|
|||
_unitOfWork.AppUserProgressRepository.Update(userProgress);
|
||||
}
|
||||
|
||||
_logger.LogDebug("Saving Progress on Chapter {ChapterId} from Series {SeriesId} to {PageNum}", progressDto.ChapterId, progressDto.SeriesId, progressDto.PageNum);
|
||||
userProgress?.MarkModified();
|
||||
|
||||
if (!_unitOfWork.HasChanges() || await _unitOfWork.CommitAsync())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue