Wrap debug log in DEBUG_UNIX_CALLS