bug fixs to nginx logger