Browse Source

bug fix

master
SisMaker 4 years ago
parent
commit
f72a77cdca
3 changed files with 4 additions and 3 deletions
  1. +1
    -1
      include/erlSync.hrl
  2. +2
    -1
      src/erlSync.erl
  3. +1
    -1
      src/sync/esScanner.erl

+ 1
- 1
include/erlSync.hrl View File

@ -1,6 +1,6 @@
-define(LOG_ON(Val), Val == true; Val == all; Val == skip_success; is_list(Val), Val =/= []).
-define(gTimeout(Type, Time), {gTimeout, doSync, Time, Type}).
-define(gTimeout(Type, Time), {gTimeout, {doSync, Type}, Time, Type}).
-define(Log, log).
-define(moduleTime, moduleTime).

+ 2
- 1
src/erlSync.erl View File

@ -27,7 +27,8 @@ run() ->
esScanner:rescan(),
ok;
{error, Reason} ->
esUtils:logErrors("start erlSync error ~p~n", [Reason])
Msg = io_lib:format("start erlSync error ~p~n", [Reason]),
esUtils:logErrors(Msg)
end.
pause() ->

+ 1
- 1
src/sync/esScanner.erl View File

@ -204,7 +204,7 @@ handleCast(_Msg, _, _State) ->
handleInfo(_Msg, _, _State) ->
kpS_S.
handleOnevent(doSync, Msg, Status, State) ->
handleOnevent({doSync, _}, Msg, Status, State) ->
handleCast(Msg, Status, State);
handleOnevent(_EventType, _EventContent, _Status, _State) ->
kpS_S.

Loading…
Cancel
Save