fixed log_event() call added in previous commit