Fix packet logging