Removed extra "[COGWHEEL]" in error logging
This commit is contained in:
parent
9659fb6086
commit
83bc55526a
@ -55,7 +55,7 @@ public class CommandsManager : ICommandsManager
|
|||||||
var command = GetCommandAndArgsFromString(input);
|
var command = GetCommandAndArgsFromString(input);
|
||||||
if (command is null)
|
if (command is null)
|
||||||
{
|
{
|
||||||
CogwheelConsole.LogError($"[COGWHEEL] Command not found: {input}");
|
CogwheelConsole.LogError($"Command not found: {input}");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -74,11 +74,11 @@ public class CommandsManager : ICommandsManager
|
|||||||
return ExecuteCommand(CurrentContext, command.Value);
|
return ExecuteCommand(CurrentContext, command.Value);
|
||||||
}
|
}
|
||||||
|
|
||||||
CogwheelConsole.LogWarning($"[COGWHEEL] Command '{command.Value.Item1.Name}' is not static and no valid context was provided, searching for first registered context of type '{command.Value.Item1.Method.DeclaringType}'");
|
CogwheelConsole.LogWarning($"Command '{command.Value.Item1.Name}' is not static and no valid context was provided, searching for first registered context of type '{command.Value.Item1.Method.DeclaringType}'");
|
||||||
context = GetFirstValidRegisteredContext(command.Value.Item1.Method.DeclaringType);
|
context = GetFirstValidRegisteredContext(command.Value.Item1.Method.DeclaringType);
|
||||||
if (context is null)
|
if (context is null)
|
||||||
{
|
{
|
||||||
CogwheelConsole.LogError($"[COGWHEEL] No context of type '{command.Value.Item1.Method.DeclaringType}' found");
|
CogwheelConsole.LogError($"No context of type '{command.Value.Item1.Method.DeclaringType}' found");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -229,11 +229,11 @@ public class CommandsManager : ICommandsManager
|
|||||||
{
|
{
|
||||||
RegisteredObjectInstances[uniqueId] = obj;
|
RegisteredObjectInstances[uniqueId] = obj;
|
||||||
RegisteredObjectGuids[obj] = uniqueId;
|
RegisteredObjectGuids[obj] = uniqueId;
|
||||||
CogwheelConsole.Log($"[COGWHEEL] Registered object with ID {uniqueId}");
|
CogwheelConsole.Log($"Registered object with ID {uniqueId}");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
CogwheelConsole.LogWarning($"[COGWHEEL] Object with ID {uniqueId} is already registered");
|
CogwheelConsole.LogWarning($"Object with ID {uniqueId} is already registered");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user