How to use the trace function from tracer

Find comprehensive JavaScript tracer.trace code examples handpicked from public code repositorys.

52
53
54
55
56
57
58
59
60
61
  }, function(err) {
    if (err) {
      logger.error(err);
      callback(err);
    }else{
      logger.trace('remove_old_from_db end');
      callback();
    }
  });
}],
fork icon25
star icon59
watch icon6

+ 17 other calls in file

26
27
28
29
30
31
32
33
34
35
}
logger.trace(`Data extracted.`);
let file = require('./File')(processedFile);

file.parseData((data) => {
    logger.trace(`Data parsed.`);
    file.storeData(data, (error) => {
         if (error) {
             return next(error);
         }
fork icon0
star icon0
watch icon0

+ 2 other calls in file

32
33
34
35
36
37
38
39
40
41
 * Extracts text from file.
 * @param inputFilePath Input file path.
 * @param next Callback function with parameters error and processed file.
 */
function extractTextFromUrl(inputFilePath, next) {
    logger.trace(`Extracting text: ${inputFilePath}`);
    textract.fromUrl(inputFilePath, { preserveLineBreaks: true }, (error, data) => {
        if (_.isFunction(next)) {
            if (error) {
                return next(error);
fork icon0
star icon0
watch icon0

26
27
28
29
30
31
32
33
34
35
/**
 * Parses resume file data.
 * @param next Callback function with parameter resume data.
 */
parseData(next) {
    logger.trace(`Parsing Data: ${this.processedFile.filePath}`);
    parser.parseData(this.processedFile, next);
}

/**
fork icon0
star icon0
watch icon0