|
|
@ -482,19 +482,19 @@ setEnv(Var, Val) -> |
|
|
|
ok = application:set_env(eSync, Var, Val). |
|
|
|
|
|
|
|
logSuccess(Format) -> |
|
|
|
canLog(success) andalso logger:notice(Format). |
|
|
|
canLog(success) andalso error_logger:info_msg(Format). |
|
|
|
logSuccess(Format, Args) -> |
|
|
|
canLog(success) andalso logger:notice(Format, Args). |
|
|
|
canLog(success) andalso error_logger:info_msg(Format, Args). |
|
|
|
|
|
|
|
logErrors(Format) -> |
|
|
|
canLog(errors) andalso logger:error(Format). |
|
|
|
canLog(errors) andalso error_logger:error_msg(Format). |
|
|
|
logErrors(Format, Args) -> |
|
|
|
canLog(errors) andalso logger:error(Format, Args). |
|
|
|
canLog(errors) andalso error_logger:error_msg(Format, Args). |
|
|
|
|
|
|
|
logWarnings(Format) -> |
|
|
|
canLog(warnings) andalso logger:warning(Format) . |
|
|
|
canLog(warnings) andalso error_logger:warning_msg(Format) . |
|
|
|
logWarnings(Format, Args) -> |
|
|
|
canLog(warnings) andalso logger:warning(Format, Args) . |
|
|
|
canLog(warnings) andalso error_logger:warning_msg(Format, Args) . |
|
|
|
|
|
|
|
canLog(MsgType) -> |
|
|
|
case esSyncSrv:getLog() of |
|
|
@ -862,7 +862,8 @@ collIncludeCErls([Hrl | LeftHrl], SrcFiles, CSrcs, NewAddMap) -> |
|
|
|
|
|
|
|
whoInclude(HrlFile, AllFiles, CFiles, NewAddMap) -> |
|
|
|
HrlFileBaseName = filename:basename(HrlFile), |
|
|
|
doMathEveryFile(maps:iterator(AllFiles), HrlFileBaseName, CFiles, NewAddMap). |
|
|
|
QuoteHrlFileBaseName = <<"\"", HrlFileBaseName/binary, "\"">>, |
|
|
|
doMathEveryFile(maps:iterator(AllFiles), QuoteHrlFileBaseName, CFiles, NewAddMap). |
|
|
|
|
|
|
|
doMathEveryFile(Iterator, HrlFileBaseName, CFiles, NewAddMap) -> |
|
|
|
case maps:next(Iterator) of |
|
|
|