diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-06-26 11:01:47 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-06-26 11:01:47 -0400 |
commit | 8d7b5b372657c0f96196cb2a902b2bdcce184fe4 (patch) | |
tree | b993c2dca419bb80accdb9eb4eef331cc277ecd6 /src/StardewModdingAPI/Program.cs | |
parent | e66ee50cae9773d4ebaed0ab7e649aef9602cc94 (diff) | |
download | SMAPI-8d7b5b372657c0f96196cb2a902b2bdcce184fe4.tar.gz SMAPI-8d7b5b372657c0f96196cb2a902b2bdcce184fe4.tar.bz2 SMAPI-8d7b5b372657c0f96196cb2a902b2bdcce184fe4.zip |
improve logging when SMAPI loads mods
Diffstat (limited to 'src/StardewModdingAPI/Program.cs')
-rw-r--r-- | src/StardewModdingAPI/Program.cs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/StardewModdingAPI/Program.cs b/src/StardewModdingAPI/Program.cs index da0c5bca..0805b6c5 100644 --- a/src/StardewModdingAPI/Program.cs +++ b/src/StardewModdingAPI/Program.cs @@ -483,7 +483,7 @@ namespace StardewModdingAPI /// <returns>Returns whether all integrity checks passed.</returns> private bool ValidateContentIntegrity() { - this.Monitor.Log("Detecting common issues..."); + this.Monitor.Log("Detecting common issues...", LogLevel.Trace); bool issuesFound = false; // object format (commonly broken by outdated mods) @@ -603,6 +603,7 @@ namespace StardewModdingAPI Assembly modAssembly; try { + this.Monitor.Log($"Loading {metadata.DisplayName} from {assemblyPath.Replace(Constants.ModPath, "").TrimStart(Path.DirectorySeparatorChar)}...", LogLevel.Trace); modAssembly = modAssemblyLoader.Load(assemblyPath, assumeCompatible: metadata.Compatibility?.Compatibility == ModCompatibilityType.AssumeCompatible); } catch (IncompatibleInstructionException ex) @@ -659,7 +660,6 @@ namespace StardewModdingAPI metadata.SetMod(mod); this.ModRegistry.Add(metadata); modsLoaded++; - this.Monitor.Log($"Loaded {metadata.DisplayName} by {manifest.Author}, v{manifest.Version} | {manifest.Description}", LogLevel.Info); } catch (Exception ex) { @@ -667,6 +667,13 @@ namespace StardewModdingAPI } } + // log mods + foreach (var metadata in this.ModRegistry.GetMods().OrderBy(p => p.DisplayName)) + { + IManifest manifest = metadata.Manifest; + this.Monitor.Log($"Loaded {metadata.DisplayName} by {manifest.Author}, v{manifest.Version} | {manifest.Description}", LogLevel.Info); + } + // initialise translations this.ReloadTranslations(); |