Skip to content

Commit ff54c09

Browse files
committed
use logError
1 parent 5c19825 commit ff54c09

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mqmetric/channel.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ func ChannelInitAttributes() {
146146
ChannelStatus.Attributes[attr] = newStatusAttribute(attr, "Time Since Msg", -1)
147147

148148
// These are not really monitoring metrics but it may enable calculations to be made such as %used for
149-
// the channel instance availability. It's extracted at startup of the program via INQUIRE_CHL and not updated later
149+
// the channel instance availability. It's extracted at startup of the program via INQUIRE_CHL and not updated later
150150
// until rediscovery is done based on a separate schedule.
151151

152152
attr = ATTR_CHL_MAX_INST

mqmetric/status.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ func statusGetReply() (*ibmmq.MQCFH, []byte, bool, error) {
220220
}
221221
} else {
222222
if err.(*ibmmq.MQReturn).MQRC != ibmmq.MQRC_NO_MSG_AVAILABLE {
223-
fmt.Printf("StatusGetReply error : %v\n", err)
223+
logError("StatusGetReply error : %v\n", err)
224224
}
225225
return nil, nil, allDone, err
226226
}

0 commit comments

Comments
 (0)