<commit_before>﻿// Copyright 2012 <NAME>
//  
// 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.
namespace MassTransit.Transports.AzureServiceBus.Internal
{
    using Logging;


    /// <summary>
    /// Extensions for logging to MassTransit.Messages
    /// </summary>
    public static class EndpointAsyncLoggerExtensions
    {
        static readonly ILog _messages = Logger.Get("MassTransit.Messages");

        /// <summary>
        /// Normal operation send
        /// </summary>
        public static void LogBeginSend(this IEndpointAddress sourceAddress, string messageId)
        {
            _messages.InfoFormat("SEND begin:{0}:{1}", sourceAddress, messageId);
        }

        /// <summary>
        /// Finished sending operation successfully
        /// </summary>
        public static void LogEndSend(this IEndpointAddress sourceAddress, string messageId)
        {
            _messages.InfoFormat("SEND end:{0}:{1}", sourceAddress, messageId);
        }

        /// <summary>
        /// Warns, this is not a good thing; means we're taxing the broker too much.
        /// </summary>
        public static void LogSendRetryScheduled(this IEndpointAddress sourceAddress, string messageId,
            int messagesInFlight, int inSleep)
        {
            _messages.WarnFormat("SEND retry:{0}:{1}. Messages in flight: {2}. Messages sleeping: {3} ",
                sourceAddress, messageId, messagesInFlight, inSleep);
        }
    }
}<commit_msg>Changed log info to debug on send (matches MT core)<commit_after>﻿// Copyright 2012 <NAME>
//  
// 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.
namespace MassTransit.Transports.AzureServiceBus.Internal
{
    using Logging;


    /// <summary>
    /// Extensions for logging to MassTransit.Messages
    /// </summary>
    public static class EndpointAsyncLoggerExtensions
    {
        static readonly ILog _messages = Logger.Get("MassTransit.Messages");

        /// <summary>
        /// Normal operation send
        /// </summary>
        public static void LogBeginSend(this IEndpointAddress sourceAddress, string messageId)
        {
            _messages.DebugFormat("SEND begin:{0}:{1}", sourceAddress, messageId);
        }

        /// <summary>
        /// Finished sending operation successfully
        /// </summary>
        public static void LogEndSend(this IEndpointAddress sourceAddress, string messageId)
        {
            _messages.DebugFormat("SEND end:{0}:{1}", sourceAddress, messageId);
        }

        /// <summary>
        /// Warns, this is not a good thing; means we're taxing the broker too much.
        /// </summary>
        public static void LogSendRetryScheduled(this IEndpointAddress sourceAddress, string messageId,
            int messagesInFlight, int inSleep)
        {
            _messages.WarnFormat("SEND retry:{0}:{1}. Messages in flight: {2}. Messages sleeping: {3} ",
                sourceAddress, messageId, messagesInFlight, inSleep);
        }
    }
}
{'fraction_non_alphanumeric': 0.09800097513408093, 'fraction_numerical': 0.0078010726474890294, 'mean_word_length': 2.3142164781906303, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4112400', 'n_tokens_mistral': 1062, 'n_tokens_neox': 1023, 'n_words': 365}