You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"chocolatey".Log().Error(regularLogOutput?ChocolateyLoggers.Normal:ChocolateyLoggers.LogFileOnly,@"Chocolatey license found in the wrong location. File must be located at
72
+
"chocolatey".Log().Error(normalLogger,@"Chocolatey license found in the wrong location. File must be located at
"chocolatey".Log().Warn(regularLogOutput?ChocolateyLoggers.Important:ChocolateyLoggers.LogFileOnly,@" Move license file to '{0}' to allow commercial features.".FormatWith(ApplicationParameters.LicenseFileLocation));
74
+
"chocolatey".Log().Warn(importantLogger,@" Move license file to '{0}' to allow commercial features.".FormatWith(ApplicationParameters.LicenseFileLocation));
72
75
}
73
76
}
74
77
@@ -94,15 +97,15 @@ public static ChocolateyLicense Validate()
94
97
{
95
98
chocolateyLicense.IsValid=false;
96
99
chocolateyLicense.InvalidReason=e.Message;
97
-
"chocolatey".Log().Error(regularLogOutput?ChocolateyLoggers.Normal:ChocolateyLoggers.LogFileOnly,"A license was not found for a licensed version of Chocolatey:{0} {1}{0} {2}".FormatWith(Environment.NewLine,e.Message,
100
+
"chocolatey".Log().Error(normalLogger,"A license was not found for a licensed version of Chocolatey:{0} {1}{0} {2}".FormatWith(Environment.NewLine,e.Message,
98
101
"A license was also not found in the user profile: '{0}'.".FormatWith(ApplicationParameters.UserLicenseFileLocation)));
99
102
}
100
103
catch(Exceptione)
101
104
{
102
105
//license may be invalid
103
106
chocolateyLicense.IsValid=false;
104
107
chocolateyLicense.InvalidReason=e.Message;
105
-
"chocolatey".Log().Error(regularLogOutput?ChocolateyLoggers.Normal:ChocolateyLoggers.LogFileOnly,"A license was found for a licensed version of Chocolatey, but is invalid:{0} {1}".FormatWith(Environment.NewLine,e.Message));
108
+
"chocolatey".Log().Error(normalLogger,"A license was found for a licensed version of Chocolatey, but is invalid:{0} {1}".FormatWith(Environment.NewLine,e.Message));
0 commit comments