Skip to content

Commit c46a280

Browse files
committed
store: Remove some logging that wasn't very useful
1 parent 96a5e98 commit c46a280

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

store/postgres/src/store.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,7 @@ fn initiate_schema(logger: &Logger, conn: &PgConnection, blocking_conn: &PgConne
125125
// run, which is not easy to tell from the Diesel API, and reset the
126126
// query statistics since a schema change makes them not all that
127127
// useful. An error here is not serious and can be ignored.
128-
let res = conn.batch_execute("select pg_stat_statements_reset()");
129-
if let Err(e) = res {
130-
trace!(logger, "Failed to reset query statistics ({})", e);
131-
}
128+
conn.batch_execute("select pg_stat_statements_reset()").ok();
132129
}
133130
}
134131

@@ -781,7 +778,6 @@ impl Store {
781778
if let Some(info) = self.subgraph_cache.lock().unwrap().get(&subgraph_id) {
782779
return Ok(info.clone());
783780
}
784-
trace!(self.logger, "schema cache miss"; "id" => subgraph_id.to_string());
785781

786782
let conn = self.get_conn()?;
787783
let input_schema = metadata::subgraph_schema(&conn, subgraph_id.to_owned())?;

0 commit comments

Comments
 (0)