Package task log always show when set loglevel is none
jxnkwlp opened this issue · 3 comments
jxnkwlp commented
Describe the bug
Package task log always show when set loglevel is none .
code :
context.CreateTarget("Zip") .SetDescription("Zip all modules.") .DependsOn("Publish") .AddTask(x => x .PackageTask(PackOutputDir) .AddDirectoryToPackage(OutputDir, "web", true) .ZipPackage("web") .WithLogLevel(LogLevel.None));
FlubuCore.Runner version: 6.3.2
jxnkwlp commented
mzorec commented
For now you can use DisableLogging
instead to disable logs on PackageTask
.
context.CreateTarget("Test").AddTask(x => x.PackageTask(RootDirectory).DisableLogging());
In future version we will obsolete DisableLogging
and fix PackageTask
that it will work with WithLogLevel
.
mzorec commented
Issue has been fixed.