From 1a50fa44bc2ee92b1e8c4c19470f1f59fa9b3783 Mon Sep 17 00:00:00 2001 From: Cameron Date: Wed, 16 Aug 2023 03:15:09 -0700 Subject: [PATCH] minor log fixes that were creating bugs --- Assets/LDtkUnity/Editor/ScriptedImporter/LDtkJsonDigger.cs | 2 +- .../LDtkUnity/Editor/ScriptedImporter/LDtkProjectImporter.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Assets/LDtkUnity/Editor/ScriptedImporter/LDtkJsonDigger.cs b/Assets/LDtkUnity/Editor/ScriptedImporter/LDtkJsonDigger.cs index fd08fa2ae..65e97a34d 100644 --- a/Assets/LDtkUnity/Editor/ScriptedImporter/LDtkJsonDigger.cs +++ b/Assets/LDtkUnity/Editor/ScriptedImporter/LDtkJsonDigger.cs @@ -62,7 +62,7 @@ private static bool DigIntoJson(string path, JsonDigAction digAction, ref return true; } - LDtkDebug.LogError($"Issue digging into the json for {path}"); + LDtkDebug.LogError($"Issue digging into the json for {path} when doing {digAction.Method.Name}"); return false; } diff --git a/Assets/LDtkUnity/Editor/ScriptedImporter/LDtkProjectImporter.cs b/Assets/LDtkUnity/Editor/ScriptedImporter/LDtkProjectImporter.cs index 47f3a52af..0e616f02e 100644 --- a/Assets/LDtkUnity/Editor/ScriptedImporter/LDtkProjectImporter.cs +++ b/Assets/LDtkUnity/Editor/ScriptedImporter/LDtkProjectImporter.cs @@ -371,14 +371,14 @@ public LDtkTilesetImporter LoadAndCacheTilesetImporter(TilesetDefinition def) if (!File.Exists(path)) { - Logger.LogError($"Failed to find the required tileset file at \"{path}\". Ensure that LDtk exported a tileset file through a custom command. If the command wasn't configured yet, check the project inspector for more info."); + LDtkDebug.LogError($"Failed to find the required tileset file at \"{path}\". Ensure that LDtk exported a tileset file through a custom command. If the command wasn't configured yet, check the project inspector for more info.", Logger); return null; } importer = (LDtkTilesetImporter)GetAtPath(path); if (importer == null) { - Logger.LogError($"Failed to find the required tileset file importer at \"{path}\", but the file exists. The tileset file may have failed to import?"); + LDtkDebug.LogError($"Failed to find the required tileset file importer at \"{path}\", but the file exists. The tileset file may have failed to import?", Logger); return null; }