Skip to content

Kavita is a fast, feature rich, cross platform reading server. Built with the goal of being a full solution for all your reading needs. Setup your own server and share your reading collection with your friends and family.

Version bump and reduced some sentry logs

Joseph Milazzoe4a9c468fe90
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<byte>();
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 @@
<TargetFramework>net5.0</TargetFramework>
<Company>kareadita.github.io</Company>
<Product>Kavita</Product>
- <AssemblyVersion>0.4.1.0</AssemblyVersion>
+ <AssemblyVersion>0.4.1.1</AssemblyVersion>
<NeutralLanguage>en</NeutralLanguage>
</PropertyGroup>