Add more info messages to user, rename log printing function
This commit is contained in:
parent
eeee462f05
commit
a758ec55e8
9 changed files with 22 additions and 13 deletions
6
lib/debug-artifacts.js
generated
6
lib/debug-artifacts.js
generated
|
|
@ -22,7 +22,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.uploadDatabaseBundleDebugArtifact = exports.uploadLogsDebugArtifact = exports.uploadFinalLogsDebugArtifact = exports.uploadSarifDebugArtifact = exports.uploadDebugArtifacts = exports.sanitizeArifactName = void 0;
|
||||
exports.uploadDatabaseBundleDebugArtifact = exports.uploadLogsDebugArtifact = exports.printDebugLogs = exports.uploadSarifDebugArtifact = exports.uploadDebugArtifacts = exports.sanitizeArifactName = void 0;
|
||||
const fs = __importStar(require("fs"));
|
||||
const path = __importStar(require("path"));
|
||||
const artifact = __importStar(require("@actions/artifact"));
|
||||
|
|
@ -69,7 +69,7 @@ async function uploadSarifDebugArtifact(config, outputDir) {
|
|||
await uploadDebugArtifacts(toUpload, outputDir, config.debugArtifactName);
|
||||
}
|
||||
exports.uploadSarifDebugArtifact = uploadSarifDebugArtifact;
|
||||
async function uploadFinalLogsDebugArtifact(config) {
|
||||
async function printDebugLogs(config) {
|
||||
core.info("Debug mode is on. Printing CodeQL debug logs...");
|
||||
for (const language of config.languages) {
|
||||
const databaseDirectory = (0, util_1.getCodeQLDatabasePath)(config, language);
|
||||
|
|
@ -97,7 +97,7 @@ async function uploadFinalLogsDebugArtifact(config) {
|
|||
walkLogFiles(logsDirectory);
|
||||
}
|
||||
}
|
||||
exports.uploadFinalLogsDebugArtifact = uploadFinalLogsDebugArtifact;
|
||||
exports.printDebugLogs = printDebugLogs;
|
||||
async function uploadLogsDebugArtifact(config) {
|
||||
const codeql = await (0, codeql_1.getCodeQL)(config.codeQLCmd);
|
||||
let toUpload = [];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue