mirror of
https://github.com/dlang-community/D-Scanner.git
synced 2025-04-25 21:00:17 +03:00
fix logger warnings, for real this time
We should probably add a linter case for this
This commit is contained in:
parent
f37faf85dd
commit
93f338a5e7
2 changed files with 5 additions and 5 deletions
|
@ -621,10 +621,10 @@ version (unittest)
|
|||
shared static this()
|
||||
{
|
||||
// mute dsymbol warnings in tests
|
||||
static if (__VERSION__ >= 2_101_0)
|
||||
static if (__VERSION__ >= 2_101)
|
||||
{
|
||||
import std.logger : sharedLog, LogLevel;
|
||||
sharedLog.globalLogLevel = LogLevel.error;
|
||||
(cast()sharedLog).logLevel = LogLevel.error;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -118,7 +118,7 @@ else
|
|||
}
|
||||
|
||||
{
|
||||
static if (__VERSION__ >= 2_101_0)
|
||||
static if (__VERSION__ >= 2_101)
|
||||
import std.logger : sharedLog, LogLevel;
|
||||
else
|
||||
import std.experimental.logger : globalLogLevel, LogLevel;
|
||||
|
@ -126,8 +126,8 @@ else
|
|||
// messages that aren't errors from it by default
|
||||
// users can use verbose to enable all logs (this will log things like
|
||||
// dsymbol couldn't find some modules due to wrong import paths)
|
||||
static if (__VERSION__ >= 2_101_0)
|
||||
sharedLog.globalLogLevel = verbose ? LogLevel.all : LogLevel.error;
|
||||
static if (__VERSION__ >= 2_101)
|
||||
(cast()sharedLog).logLevel = verbose ? LogLevel.all : LogLevel.error;
|
||||
else
|
||||
globalLogLevel = verbose ? LogLevel.all : LogLevel.error;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue