clean up console

Summary: The console was pretty spammy. This fixes some issues that were logged and changes many log statements to `console.debug` which are not shown by default.

Reviewed By: passy

Differential Revision: D9303011

fbshipit-source-id: 1102f4f8814152a45f155cb43488a515c2d4eee4
This commit is contained in:
Daniel Büchele
2018-08-14 03:01:22 -07:00
committed by Facebook Github Bot
parent eb316be4e4
commit 6f2a7dcb05
6 changed files with 37 additions and 14 deletions

View File

@@ -125,7 +125,7 @@ export default class CertificateProvider {
}
generateClientCertificate(csr: string): Promise<string> {
console.warn('Creating new client cert', logTag);
console.debug('Creating new client cert', logTag);
const csrFile = this.writeToTempFile(csr);
// Create a certificate for the client, using the details in the CSR.
return openssl('x509', {
@@ -258,7 +258,7 @@ export default class CertificateProvider {
filename: string,
contents: string,
): Promise<void> {
console.warn(`Deploying ${filename} to ${deviceId}:${app}`, logTag);
console.debug(`Deploying ${filename} to ${deviceId}:${app}`, logTag);
return this.executeCommandOnAndroid(
deviceId,
app,