Replace all usage of printStackTrace() with a proper logging mechanism.
Replace all usage of printStackTrace() with a proper logging mechanism.