less verbosity, fix symlink direction

This commit is contained in:
Florian Dold 2020-08-07 11:54:47 +05:30
parent f4265f76dd
commit 08ec98af77
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -705,7 +705,6 @@ export class ExchangeService implements ExchangeServiceInterface {
try {
console.log("pinging exchange");
const resp = await axios.get(url);
console.log(resp.data);
return;
} catch (e) {
console.log("exchange not ready:", e.toString());
@ -836,7 +835,6 @@ export class MerchantService {
try {
console.log("pinging merchant");
const resp = await axios.get(url);
console.log(resp.data);
return;
} catch (e) {
console.log("merchant not ready", e.toString());
@ -871,8 +869,9 @@ function updateCurrentSymlink(testDir: string): void {
// Ignore
}
try {
fs.symlinkSync(currLink, testDir);
fs.symlinkSync(testDir, currLink);
} catch (e) {
console.log(e);
// Ignore
}
}