X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-rest-connector%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Frestconf%2Fimpl%2FBrokerFacade.xtend;h=67429f3759283209b49f971746e67928ba076012;hb=aefdbf9e014411a197cac01f9de53b3fd35179cb;hp=9c0c3ac14c9eabb9757ac526b505822e573a0824;hpb=054306c1c3b582b4448db31c2058c7282246a258;p=controller.git diff --git a/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/restconf/impl/BrokerFacade.xtend b/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/restconf/impl/BrokerFacade.xtend index 9c0c3ac14c..67429f3759 100644 --- a/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/restconf/impl/BrokerFacade.xtend +++ b/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/restconf/impl/BrokerFacade.xtend @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + */ package org.opendaylight.controller.sal.restconf.impl import javax.ws.rs.core.Response @@ -42,25 +49,25 @@ class BrokerFacade implements DataReader { override readConfigurationData(InstanceIdentifier path) { checkPreconditions - LOG.info("Read Configuration via Restconf: {}", path) + LOG.trace("Read Configuration via Restconf: {}", path) return dataService.readConfigurationData(path); } def readConfigurationDataBehindMountPoint(MountInstance mountPoint, InstanceIdentifier path) { checkPreconditions - LOG.info("Read Configuration via Restconf: {}", path) + LOG.trace("Read Configuration via Restconf: {}", path) return mountPoint.readConfigurationData(path); } override readOperationalData(InstanceIdentifier path) { checkPreconditions - LOG.info("Read Operational via Restconf: {}", path) + LOG.trace("Read Operational via Restconf: {}", path) return dataService.readOperationalData(path); } def readOperationalDataBehindMountPoint(MountInstance mountPoint, InstanceIdentifier path) { checkPreconditions - LOG.info("Read Operational via Restconf: {}", path) + LOG.trace("Read Operational via Restconf: {}", path) return mountPoint.readOperationalData(path); } @@ -73,7 +80,7 @@ class BrokerFacade implements DataReader { def commitConfigurationDataPut(InstanceIdentifier path, CompositeNode payload) { checkPreconditions val transaction = dataService.beginTransaction; - LOG.info("Put Configuration via Restconf: {}", path) + LOG.trace("Put Configuration via Restconf: {}", path) transaction.putConfigurationData(path, payload); return transaction.commit } @@ -81,7 +88,7 @@ class BrokerFacade implements DataReader { def commitConfigurationDataPutBehindMountPoint(MountInstance mountPoint, InstanceIdentifier path, CompositeNode payload) { checkPreconditions val transaction = mountPoint.beginTransaction; - LOG.info("Put Configuration via Restconf: {}", path) + LOG.trace("Put Configuration via Restconf: {}", path) transaction.putConfigurationData(path, payload); return transaction.commit } @@ -91,10 +98,10 @@ class BrokerFacade implements DataReader { val transaction = dataService.beginTransaction; transaction.putConfigurationData(path, payload); if (payload == transaction.createdConfigurationData.get(path)) { - LOG.info("Post Configuration via Restconf: {}", path) + LOG.trace("Post Configuration via Restconf: {}", path) return transaction.commit } - LOG.info("Post Configuration via Restconf was not executed because data already exists: {}", path) + LOG.trace("Post Configuration via Restconf was not executed because data already exists: {}", path) return null; } @@ -103,10 +110,10 @@ class BrokerFacade implements DataReader { val transaction = mountPoint.beginTransaction; transaction.putConfigurationData(path, payload); if (payload == transaction.createdConfigurationData.get(path)) { - LOG.info("Post Configuration via Restconf: {}", path) + LOG.trace("Post Configuration via Restconf: {}", path) return transaction.commit } - LOG.info("Post Configuration via Restconf was not executed because data already exists: {}", path) + LOG.trace("Post Configuration via Restconf was not executed because data already exists: {}", path) return null; }