Add some debug logging on linux