On a local characterization of pseudoconvex domains