fix bugs in set-servicelogging