fix setupLogging() API change bug