Added some traces for image handling

This commit is contained in:
emeric
2024-03-30 00:04:57 +01:00
parent a91fc78d80
commit 9ca4ac073a
3 changed files with 12 additions and 2 deletions
+3
View File
@@ -20,12 +20,15 @@
#include "SvgImage.hpp"
#include <fstream>
#include "core/ITraceLogger.hpp"
#include "image/Exception.hpp"
namespace lms::image
{
std::unique_ptr<IEncodedImage> readSvgFile(const std::filesystem::path& p)
{
LMS_SCOPED_TRACE_DETAILED("Image", "ReadSVG");
if (p.extension() != ".svg")
throw Exception{ "Unexpected file extension: '" + p.extension().string() + "', expected .svg" };