Remove e.printStackTrace() in LogManager class, add a test case, and fix a potenital defect in LogManagerTest