Skip to content

Commit 6466b89

Browse files
committed
graph: Log the load management mode more clearly
1 parent 1e59334 commit 6466b89

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

graph/src/data/graphql/effort.rs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,16 @@ impl LoadManager {
216216
.into_iter()
217217
.map(|doc| shape_hash(&doc))
218218
.collect::<HashSet<_>>();
219-
info!(
220-
logger,
221-
"Creating LoadManager with disabled={}", *LOAD_MANAGEMENT_DISABLED,
222-
);
219+
220+
let mode = if *LOAD_MANAGEMENT_DISABLED {
221+
"disabled"
222+
} else if *SIMULATE {
223+
"simulation"
224+
} else {
225+
"enabled"
226+
};
227+
info!(logger, "Creating LoadManager in {} mode", mode,);
228+
223229
let effort_gauge = registry
224230
.new_gauge(
225231
String::from("query_effort_ms"),

0 commit comments

Comments
 (0)