Skip to content

Commit

Permalink
fix inconsistent name formatting in the log
Browse files Browse the repository at this point in the history
  • Loading branch information
radj307 committed Nov 12, 2023
1 parent 09d95cb commit da83646
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions VolumeControl/Helpers/LocalizationHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ private void ParseSubElement(JProperty property, Stack<string> textId, Localizat
public static void Initialize(bool overwriteExistingTranslationConfigs, bool logMissingTranslations, ILogWriter? log)
{
if (IsInitialized)
throw new InvalidOperationException($"{nameof(LocalizationHelper)} has already been initialized!");
throw new InvalidOperationException($"[{nameof(LocalizationHelper)}] has already been initialized!");
IsInitialized = true;

LogWriter = log;
Expand Down Expand Up @@ -210,7 +210,7 @@ private static void WriteEmbeddedTranslationConfigs(bool overwriteExisting)
// WriteStreamToFileAsync disposes of the stream for us:
writeTasks.Add(WriteStreamToFileAsync(assembly.GetManifestResourceStream(resourcePath)!, outputFilePath));

LogWriter?.Debug($"{nameof(LocalizationHelper)} Writing \"{resourceName}\" to \"{outputFilePath}\"");
LogWriter?.Debug($"[{nameof(LocalizationHelper)}] Writing \"{resourceName}\" to \"{outputFilePath}\"");
}
}

Expand Down

0 comments on commit da83646

Please sign in to comment.