Only warn against missing mod meta files in Release mode on log-level debug or higher.

This commit is contained in:
Ottermandias 2021-04-20 22:17:33 +02:00
parent 5d97f77dc3
commit 80d5da3c05

View file

@ -41,7 +41,7 @@ namespace Penumbra.Mods
{ {
foreach( var ms in ModSettings ) foreach( var ms in ModSettings )
{ {
PluginLog.Information( PluginLog.Debug(
"mod: {ModName} Enabled: {Enabled} Priority: {Priority}", "mod: {ModName} Enabled: {Enabled} Priority: {Priority}",
ms.FolderName, ms.Enabled, ms.Priority ms.FolderName, ms.Enabled, ms.Priority
); );
@ -61,7 +61,11 @@ namespace Penumbra.Mods
if( metaFile == null ) 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; continue;
} }