mirror of https://github.com/deavmi/dlog.git
Core
- Fixed bug whereby the meta programming was only enabled during `unittest` build mode
This commit is contained in:
parent
bf2e54904b
commit
fbd45f1763
|
@ -104,14 +104,15 @@ public class Logger
|
||||||
{
|
{
|
||||||
/* Default context extras ios nothing */
|
/* Default context extras ios nothing */
|
||||||
string[] contextExtras = null;
|
string[] contextExtras = null;
|
||||||
version(unittest)
|
static if(__traits(isSame, typeof(message[$-1]), mixin(`string[]`)))
|
||||||
{
|
{
|
||||||
static if(__traits(isSame, typeof(message[$-1]), mixin(`string[]`)))
|
contextExtras = message[$-1];
|
||||||
|
version(unittest)
|
||||||
{
|
{
|
||||||
contextExtras = message[$-1];
|
|
||||||
pragma(msg, "meta: log: Found a custom string[] context array");
|
pragma(msg, "meta: log: Found a custom string[] context array");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Construct context array */
|
/* Construct context array */
|
||||||
string[] context = [c1, c2, to!(string)(c3), c4, c5, c6]~contextExtras;
|
string[] context = [c1, c2, to!(string)(c3), c4, c5, c6]~contextExtras;
|
||||||
|
|
Loading…
Reference in New Issue