so for error you log two entries? doesn't feel right