Skip to content

Commit

Permalink
Only warn against missing mod meta files in Release mode on log-level…
Browse files Browse the repository at this point in the history
… debug or higher.
  • Loading branch information
Ottermandias committed Apr 20, 2021
1 parent 5d97f77 commit 80d5da3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Penumbra/Mods/ModCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public void Load( bool invertOrder = false )
{
foreach( var ms in ModSettings )
{
PluginLog.Information(
PluginLog.Debug(
"mod: {ModName} Enabled: {Enabled} Priority: {Priority}",
ms.FolderName, ms.Enabled, ms.Priority
);
Expand All @@ -61,7 +61,11 @@ public void Load( bool invertOrder = false )

if( metaFile == null )
{
PluginLog.LogError( "mod meta is missing for resource mod: {ResourceModLocation}", modDir );
#if DEBUG
PluginLog.Error( "mod meta is missing for resource mod: {ResourceModLocation}", modDir );
#else
PluginLog.Debug( "mod meta is missing for resource mod: {ResourceModLocation}", modDir );
#endif
continue;
}

Expand Down

0 comments on commit 80d5da3

Please sign in to comment.