Skip to content
Snippets Groups Projects
Commit fe606ab6 authored by Neelesh Thakur's avatar Neelesh Thakur
Browse files

attribution

parent 895ffdbb
No related branches found
No related tags found
1 merge request!348add subscriber notification request request/dependency logging
Pipeline #166751 failed
// Copyright © Schlumberger
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package org.opengroup.osdu.notification.provider.interfaces;
import org.opengroup.osdu.core.common.http.HttpResponse;
import org.opengroup.osdu.core.common.model.notification.Subscription;
public interface ISubscriberNotificationRequestLogger {
default void log(String notificationId, String endpoint, HttpResponse response) {
default void log(String notificationId, Subscription subscription, HttpResponse response) {
}
}
......@@ -79,7 +79,7 @@ public class NotificationHandler {
HttpRequest request = HttpRequest.post().url(pushUrl).headers(requestHeader).body(pubsubMessage).connectionTimeout(WAITING_TIME).build();
this.LOGGER.debug("Sending out notification to endpoint: " + endpoint);
HttpResponse response = httpClient.send(request);
subscriberNotificationRequestLogger.log(notificationId, endpoint, response);
subscriberNotificationRequestLogger.log(notificationId, subscription, response);
return response;
}
}
\ No newline at end of file
// Copyright © Schlumberger
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package org.opengroup.osdu.notification.provider.azure.util;
import org.opengroup.osdu.azure.logging.DependencyLogger;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment