Only print filename in logs in debug mode