switch to yolo logger

This commit is contained in:
Ben Kyd
2023-02-28 17:10:23 +00:00
parent 9551eeaa0a
commit 83280e1046
13 changed files with 42 additions and 45 deletions

View File

@@ -1,7 +1,7 @@
// Adapted from https://raw.githubusercontent.com/tamato/simple-obj-loader/master/objloader.cpp
#include "objloader.hpp"
#include <spdlog/spdlog.h>
#include <yolo/yolo.hpp>
#include <iostream>
#include <cstdlib>
@@ -54,7 +54,7 @@ void ObjLoader::load(std::filesystem::path file)
{
if (!std::filesystem::exists(file))
{
spdlog::error("OBJ File does not exist at ", file.string());
yolo::error("OBJ File does not exist at ", file.string());
return;
}
@@ -62,7 +62,7 @@ void ObjLoader::load(std::filesystem::path file)
inf.open(file.c_str(), std::ios_base::in);
if (!inf.is_open())
{
spdlog::error("Failed to open OBJ file ", file.string());
yolo::error("Failed to open OBJ file ", file.string());
return;
}