mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 09:17:08 +00:00
Use new debug() functions
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
// FIXME This code is in painful need of refactoring
|
||||
|
||||
const debug = require("DOUGAL_ROOT/debug")(__filename);
|
||||
const debug_candidates = debug.extend("candidates");
|
||||
const { DEBUG } = require("DOUGAL_ROOT/debug")(__filename);
|
||||
const { setSurvey, transaction, pool } = require('../connection');
|
||||
|
||||
let last_tstamp = 0;
|
||||
@@ -255,7 +254,7 @@ async function save (navData, opts = {}) {
|
||||
});
|
||||
return obj;
|
||||
}).filter(c => !!c);
|
||||
debug_candidates("%j", candidates);
|
||||
DEBUG("Candidates: %j", candidates);
|
||||
// console.log("CANDIDATES", candidates);
|
||||
|
||||
if (candidates.length == 0) {
|
||||
|
||||
Reference in New Issue
Block a user