@@ -22,7 +22,6 @@ use serde::Deserialize;
2222use serde_repr:: Deserialize_repr ;
2323use serde_with:: { serde_as, DurationSecondsWithFrac } ;
2424use thegraph_core:: DeploymentId ;
25- use tracing:: warn;
2625use url:: Url ;
2726
2827use crate :: NonZeroGRT ;
@@ -56,7 +55,7 @@ impl<'de> Deserialize<'de> for ConfigWrapper {
5655 D : serde:: Deserializer < ' de > ,
5756 {
5857 let config: Config = serde_ignored:: deserialize ( deserializer, |path| {
59- warn ! ( "Ignoring unknown configuration field: {}" , path) ;
58+ tracing :: warn!( "Ignoring unknown configuration field: {}" , path) ;
6059 } ) ?;
6160
6261 Ok ( ConfigWrapper ( config) )
@@ -157,7 +156,7 @@ impl Config {
157156 x if * x <= 1 . into ( ) => {
158157 return Err ( "trigger_value_divisor must be greater than 1" . to_string ( ) )
159158 }
160- x if * x > 1 . into ( ) && * x < 10 . into ( ) => warn ! (
159+ x if * x > 1 . into ( ) && * x < 10 . into ( ) => tracing :: warn!(
161160 "It's recommended that trigger_value_divisor \
162161 be a value greater than 10."
163162 ) ,
@@ -175,7 +174,7 @@ impl Config {
175174 . to_u128 ( )
176175 . unwrap ( )
177176 {
178- warn ! (
177+ tracing :: warn!(
179178 "Trigger value is too low, currently below 0.1 GRT. \
180179 Please modify `max_amount_willing_to_lose_grt` or `trigger_value_divisor`. \
181180 It is best to have a higher trigger value, ideally above 1 GRT. \
@@ -189,7 +188,7 @@ impl Config {
189188 let usual_grt_price = BigDecimal :: from_str ( "0.0001" ) . unwrap ( ) * ten;
190189 if self . tap . max_amount_willing_to_lose_grt . get_value ( ) < usual_grt_price. to_u128 ( ) . unwrap ( )
191190 {
192- warn ! (
191+ tracing :: warn!(
193192 "Your `max_amount_willing_to_lose_grt` value is too close to zero. \
194193 This may deny the sender too often or even break the whole system. \
195194 It's recommended it to be a value greater than 100x an usual query price."
@@ -199,7 +198,7 @@ impl Config {
199198 if self . subgraphs . escrow . config . syncing_interval_secs < Duration :: from_secs ( 10 )
200199 || self . subgraphs . network . config . syncing_interval_secs < Duration :: from_secs ( 10 )
201200 {
202- warn ! (
201+ tracing :: warn!(
203202 "Your `syncing_interval_secs` value it too low. \
204203 This may overload your graph-node instance, \
205204 a recommended value is about 60 seconds."
@@ -209,15 +208,15 @@ impl Config {
209208 if self . subgraphs . escrow . config . syncing_interval_secs > Duration :: from_secs ( 600 )
210209 || self . subgraphs . network . config . syncing_interval_secs > Duration :: from_secs ( 600 )
211210 {
212- warn ! (
211+ tracing :: warn!(
213212 "Your `syncing_interval_secs` value it too high. \
214213 This may cause issues while reacting to updates in the blockchain. \
215214 a recommended value is about 60 seconds."
216215 ) ;
217216 }
218217
219218 if self . tap . rav_request . timestamp_buffer_secs < Duration :: from_secs ( 10 ) {
220- warn ! (
219+ tracing :: warn!(
221220 "Your `tap.rav_request.timestamp_buffer_secs` value it too low. \
222221 You may discart receipts in case of any synchronization issues, \
223222 a recommended value is about 30 seconds."
0 commit comments