Version bump and reduced some sentry logs

This commit is contained in:
Joseph Milazzo 2021-06-07 11:32:26 -05:00
parent f0f74e867e
commit e4a9c468fe
3 changed files with 9 additions and 9 deletions

View File

@ -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;
}

View File

@ -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>();

View File

@ -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>