Fetch PNI group credentials
This commit is contained in:
parent
b9ba732724
commit
a450e13a99
61 changed files with 1911 additions and 875 deletions
|
@ -3,8 +3,6 @@
|
|||
/* eslint-disable no-console */
|
||||
|
||||
import createDebug from 'debug';
|
||||
import fs from 'fs/promises';
|
||||
import path from 'path';
|
||||
|
||||
import { Bootstrap } from '../bootstrap';
|
||||
|
||||
|
@ -63,19 +61,6 @@ export function stats(
|
|||
return result;
|
||||
}
|
||||
|
||||
export async function saveLogs(bootstrap: Bootstrap): Promise<void> {
|
||||
const { ARTIFACTS_DIR } = process.env;
|
||||
if (!ARTIFACTS_DIR) {
|
||||
console.error('Not saving logs. Please set ARTIFACTS_DIR env variable');
|
||||
return;
|
||||
}
|
||||
|
||||
await fs.mkdir(ARTIFACTS_DIR, { recursive: true });
|
||||
|
||||
const { logsDir } = bootstrap;
|
||||
await fs.rename(logsDir, path.join(ARTIFACTS_DIR, 'logs'));
|
||||
}
|
||||
|
||||
// Can happen if electron exits prematurely
|
||||
process.on('unhandledRejection', reason => {
|
||||
console.error('Unhandled rejection:');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue