master
logMessage
func logMessage(method string, msg string, error error, onSuccesss bool, serviceId int64) {