diff --git a/API/Services/ArchiveService.cs b/API/Services/ArchiveService.cs index 9adb19c0c..4cd25d2d9 100644 --- a/API/Services/ArchiveService.cs +++ b/API/Services/ArchiveService.cs @@ -245,13 +245,13 @@ namespace API.Services { if (!File.Exists(archivePath)) { - _logger.LogError("Archive {ArchivePath} could not be found", archivePath); + _logger.LogWarning("Archive {ArchivePath} could not be found", archivePath); return false; } if (Parser.Parser.IsArchive(archivePath) || Parser.Parser.IsEpub(archivePath)) return true; - _logger.LogError("Archive {ArchivePath} is not a valid archive", archivePath); + _logger.LogWarning("Archive {ArchivePath} is not a valid archive", archivePath); return false; } diff --git a/API/Services/BookService.cs b/API/Services/BookService.cs index 08c4e2209..8be3bb0c8 100644 --- a/API/Services/BookService.cs +++ b/API/Services/BookService.cs @@ -167,7 +167,7 @@ namespace API.Services } catch (Exception ex) { - _logger.LogError(ex, "[BookService] There was an exception getting summary, defaulting to empty string"); + _logger.LogWarning(ex, "[BookService] There was an exception getting summary, defaulting to empty string"); } return string.Empty; @@ -177,13 +177,13 @@ namespace API.Services { if (!File.Exists(filePath)) { - _logger.LogError("[BookService] Book {EpubFile} could not be found", filePath); + _logger.LogWarning("[BookService] Book {EpubFile} could not be found", filePath); return false; } if (Parser.Parser.IsBook(filePath)) return true; - _logger.LogError("[BookService] Book {EpubFile} is not a valid EPUB", filePath); + _logger.LogWarning("[BookService] Book {EpubFile} is not a valid EPUB", filePath); return false; } @@ -198,7 +198,7 @@ namespace API.Services } catch (Exception ex) { - _logger.LogError(ex, "[BookService] There was an exception getting number of pages, defaulting to 0"); + _logger.LogWarning(ex, "[BookService] There was an exception getting number of pages, defaulting to 0"); } return 0; @@ -250,7 +250,7 @@ namespace API.Services } catch (Exception ex) { - _logger.LogError(ex, "[BookService] There was an exception when opening epub book: {FileName}", filePath); + _logger.LogWarning(ex, "[BookService] There was an exception when opening epub book: {FileName}", filePath); } return null; @@ -285,7 +285,7 @@ namespace API.Services } catch (Exception ex) { - _logger.LogError(ex, "[BookService] There was a critical error and prevented thumbnail generation on {BookFile}. Defaulting to no cover image", fileFilePath); + _logger.LogWarning(ex, "[BookService] There was a critical error and prevented thumbnail generation on {BookFile}. Defaulting to no cover image", fileFilePath); } return Array.Empty(); diff --git a/Kavita.Common/Kavita.Common.csproj b/Kavita.Common/Kavita.Common.csproj index 43fe7f53d..673974db1 100644 --- a/Kavita.Common/Kavita.Common.csproj +++ b/Kavita.Common/Kavita.Common.csproj @@ -4,7 +4,7 @@ net5.0 kareadita.github.io Kavita - 0.4.1.0 + 0.4.1.1 en