Skip to content

Commit cd31929

Browse files
logger, isError, toAmqpAnnotatedMessage changed to internal
1 parent 9cfe960 commit cd31929

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

sdk/servicebus/service-bus/src/log.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import { createClientLogger } from "@azure/logger";
66
/**
77
* The @azure/logger configuration for this package.
88
* This will output logs using the `azure:event-hubs` namespace prefix.
9+
* @ignore
10+
* @internal
911
*/
1012
export const logger = createClientLogger("service-bus");
1113

sdk/servicebus/service-bus/src/serviceBusMessage.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -826,6 +826,8 @@ export function fromAmqpMessage(
826826
* @export
827827
* @param {AmqpMessage} msg
828828
* @returns {AmqpAnnotatedMessage}
829+
* @internal
830+
* @ignore
829831
*/
830832
export function toAmqpAnnotatedMessage(msg: AmqpMessage): AmqpAnnotatedMessage {
831833
const messageHeader = MessageHeader.fromAmqpMessageHeader(msg);

sdk/servicebus/service-bus/src/util/errors.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ import { ConnectionContext } from "../connectionContext";
77
import { AmqpError } from "rhea-promise";
88

99
/**
10-
* Error message to use when EntityPath in connection string does not match the
10+
* Error message to use when EntityPath in connection string does not match the
1111
* queue or topic name passed to the methods in the ServiceBusClient that create
1212
* senders and receivers.
13-
*
13+
*
1414
* @internal
1515
* @ignore
1616
*/
@@ -217,6 +217,10 @@ export function logError(err: Error | AmqpError | undefined, ...args: any[]): vo
217217
logErrorStackTrace(err);
218218
}
219219

220+
/**
221+
* @internal
222+
* @ignore
223+
*/
220224
function isError(err: Error | AmqpError | undefined): err is Error {
221225
return err != null && (err as any).name != null;
222226
}

0 commit comments

Comments
 (0)