Skip to content
This repository has been archived by the owner on Feb 21, 2025. It is now read-only.

Commit

Permalink
Extra logging
Browse files Browse the repository at this point in the history
  • Loading branch information
nothingface0 committed Jun 10, 2024
1 parent 8a0b6d6 commit e141f2b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion runregistry_backend/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ console.error = getLogger("ERROR", console.error)

// Logging for sanity
const { database, host, port: db_port } = config[process.env.ENV];
console.error(`Using database: ${database}@${host}:${db_port}`);
console.info(`Using database: ${database}@${host}:${db_port}`);

models.sequelize.sync({})
.then(async () => {
Expand Down
2 changes: 1 addition & 1 deletion runregistry_backend/cron/1.get_runs.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const fetch_runs = async (
let fetched_runs = first_time
? all_fetched_runs
: all_fetched_runs.slice(fetch_amount / 2);

console.debug("Querying the last 50 updated OMS runs")
const { data: last_saved_runs } = await axios.get(
`${API_URL}/runs_lastupdated_50`
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ exports.get_OMS_lumisections = handleErrors(async (run_number) => {
await new Promise((resolve) => {
setTimeout(resolve, 2000);
});
console.debug(`Requesting lumisections for run ${run_number} from OMS`)
const oms_lumisection_url = `${OMS_URL}/${OMS_LUMISECTIONS(run_number)}`;
// Keep fetching until totalresourcecount is # of lumisections
const oms_lumisection_response = await instance
Expand Down

0 comments on commit e141f2b

Please sign in to comment.