Logging flags in open()