1
0
Fork 0
mirror of https://github.com/processone/ejabberd synced 2025-10-05 02:29:34 +02:00

lager is the default logger, we need to reverse the define flag

This commit is contained in:
Mickael Remond 2016-01-23 18:43:06 +01:00
parent 7cc951ab1b
commit a3931e6b73
2 changed files with 62 additions and 60 deletions

View file

@ -510,7 +510,7 @@ compile(_Module, _Spec, DestDir) ->
EjabBin = filename:dirname(code:which(ejabberd)),
EjabInc = filename:join(filename:dirname(EjabBin), "include"),
XmlHrl = filename:join(EjabInc, "xml.hrl"),
Logger = [{d, 'LAGER'} || code:is_loaded(lager)=/=false],
Logger = [{d, 'P1LOGGER'} || code:is_loaded(lager)==false],
ExtLib = [{d, 'NO_EXT_LIB'} || filelib:is_file(XmlHrl)],
Options = [{outdir, Ebin}, {i, "include"}, {i, EjabInc},
verbose, report_errors, report_warnings]