@@ -119,6 +119,11 @@ func (n *Negotiator) queryBidFromPriceOracle(assetSpecifier asset.Specifier,
119119 ctx , cancel := n .WithCtxQuitNoTimeout ()
120120 defer cancel ()
121121
122+ log .Debugf ("Querying price oracle for bid price (asset_specifier=%s, " +
123+ "asset_max_amt=%s, payment_max_amt=%s, asset_rate_hint=%s)" ,
124+ assetSpecifier .String (), assetMaxAmt .String (),
125+ paymentMaxAmt .String (), assetRateHint .String ())
126+
122127 oracleResponse , err := n .cfg .PriceOracle .QueryBidPrice (
123128 ctx , assetSpecifier , assetMaxAmt , paymentMaxAmt , assetRateHint ,
124129 )
@@ -240,6 +245,11 @@ func (n *Negotiator) queryAskFromPriceOracle(assetSpecifier asset.Specifier,
240245 ctx , cancel := n .WithCtxQuitNoTimeout ()
241246 defer cancel ()
242247
248+ log .Debugf ("Querying price oracle for ask price (asset_specifier=%s, " +
249+ "asset_max_amt=%s, payment_max_amt=%s, asset_rate_hint=%s)" ,
250+ assetSpecifier .String (), assetMaxAmt .String (),
251+ paymentMaxAmt .String (), assetRateHint .String ())
252+
243253 oracleResponse , err := n .cfg .PriceOracle .QueryAskPrice (
244254 ctx , assetSpecifier , assetMaxAmt , paymentMaxAmt ,
245255 assetRateHint ,
@@ -439,7 +449,7 @@ func (n *Negotiator) HandleIncomingSellRequest(
439449 sendOutgoingMsg (msg )
440450
441451 // Add an error to the error channel and return.
442- err = fmt .Errorf ("failed to query ask price from " +
452+ err = fmt .Errorf ("failed to query bid price from " +
443453 "oracle: %w" , err )
444454 n .cfg .ErrChan <- err
445455 return
0 commit comments