Refactor log incoming

note: clear local storage.