]> granicus.if.org Git - ejabberd/commitdiff
ext_mod: switch to fast_xml and remove old p1_logger reference
authorChristophe Romain <christophe.romain@process-one.net>
Thu, 3 Mar 2016 14:46:15 +0000 (15:46 +0100)
committerChristophe Romain <christophe.romain@process-one.net>
Thu, 3 Mar 2016 14:46:15 +0000 (15:46 +0100)
src/ext_mod.erl

index 14ac21316e5d7ae5fa98d78a830955da8038c3fa..91526e71fd44ac9437a4eb03126aaec13b0383a8 100644 (file)
@@ -509,12 +509,11 @@ compile(_Module, _Spec, DestDir) ->
     filelib:ensure_dir(filename:join(Ebin, ".")),
     EjabBin = filename:dirname(code:which(ejabberd)),
     EjabInc = filename:join(filename:dirname(EjabBin), "include"),
-    XmlHrl = filename:join(EjabInc, "xml.hrl"),
-    Logger = [{d, 'P1LOGGER'} || code:is_loaded(lager)==false],
+    XmlHrl = filename:join(EjabInc, "fxml.hrl"),
     ExtLib = [{d, 'NO_EXT_LIB'} || filelib:is_file(XmlHrl)],
     Options = [{outdir, Ebin}, {i, "include"}, {i, EjabInc},
                verbose, report_errors, report_warnings]
-              ++ Logger ++ ExtLib,
+              ++ ExtLib,
     [file:copy(App, Ebin) || App <- filelib:wildcard("src/*.app")],
     Result = [case compile:file(File, Options) of
             {ok, _} -> ok;