diff --git a/Packages/io.savolainen.unitygit-tests/Core/Services/UnityGitLogServiceTests.cs b/Packages/io.savolainen.unitygit-tests/Core/Services/UnityGitLogServiceTests.cs index 4e35643..066ddea 100644 --- a/Packages/io.savolainen.unitygit-tests/Core/Services/UnityGitLogServiceTests.cs +++ b/Packages/io.savolainen.unitygit-tests/Core/Services/UnityGitLogServiceTests.cs @@ -12,7 +12,7 @@ public class UnityGitLogServiceTests public void LogMessage_AddsOutputLineToList() { var logService = new UnityGitLogService(); - var expectedLine = new OutputLine("Test message", false); + var expectedLine = new OutputLine("[unitygit] Test message", false); logService.LogMessage("Test message"); var outputLines = logService.GetOutputLines(); @@ -25,7 +25,7 @@ public void LogMessage_AddsOutputLineToList() public void LogError_AddsOutputLineToList() { var logService = new UnityGitLogService(); - var expectedLine = new OutputLine("Test error", true); + var expectedLine = new OutputLine("[unitygit] Test error", true); logService.LogError("Test error"); var outputLines = logService.GetOutputLines(); @@ -54,11 +54,11 @@ public void LogException_LogsExceptionDetails() var outputLines = logService.GetOutputLines(); Assert.AreEqual(3, outputLines.Count); - Assert.AreEqual("TestException occurred.", outputLines[0].Text); + Assert.AreEqual("[unitygit] TestException occurred.", outputLines[0].Text); Assert.AreEqual(true, outputLines[0].IsError); - Assert.AreEqual("Test exception", outputLines[1].Text); + Assert.AreEqual("[unitygit] Test exception", outputLines[1].Text); Assert.AreEqual(true, outputLines[1].IsError); - Assert.AreEqual(outputLines[2].Text, "Stack trace"); + Assert.AreEqual("[unitygit] Stack trace", outputLines[2].Text); Assert.AreEqual(true, outputLines[2].IsError); } diff --git a/Packages/io.savolainen.unitygit/Core/Services/UnityGitLogService.cs b/Packages/io.savolainen.unitygit/Core/Services/UnityGitLogService.cs index 39b5ee0..fb0330a 100644 --- a/Packages/io.savolainen.unitygit/Core/Services/UnityGitLogService.cs +++ b/Packages/io.savolainen.unitygit/Core/Services/UnityGitLogService.cs @@ -14,13 +14,13 @@ public sealed class UnityGitLogService : ILogService public void LogMessage(string line) { - var outputLine = new OutputLine(line, false); + var outputLine = new OutputLine("[unitygit] " + line, false); LogOutputLine(outputLine); } public void LogError(string line) { - var outputLine = new OutputLine(line, true); + var outputLine = new OutputLine("[unitygit] " + line, true); LogOutputLine(outputLine); }