looks like it's logging twice