Skip to content

Commit da64b1a

Browse files
committed
fix: default log level to WARN. Fix for INFO log level not showing actual info (was quiet)
1 parent 443bae3 commit da64b1a

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

lib/common/logger/logger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export class Logger implements ILogger {
2525
constructor(private $config: Config.IConfig) {
2626
this.defaultLogLevel = this.$config.DEBUG
2727
? LoggerLevel.TRACE
28-
: LoggerLevel.INFO;
28+
: LoggerLevel.WARN;
2929
}
3030

3131
@cache()

lib/services/android-plugin-build-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,7 @@ export class AndroidPluginBuildService implements IAndroidPluginBuildService {
814814
}
815815

816816
if (this.$logger.getLevel() === "INFO") {
817-
localArgs.push("--quiet");
817+
localArgs.push("--info");
818818
}
819819

820820
const opts: any = {

lib/services/android/gradle-build-args-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export class GradleBuildArgsService implements IGradleBuildArgsService {
9898
if (logLevel === "TRACE") {
9999
args.push("--debug");
100100
} else if (logLevel === "INFO") {
101-
args.push("--quiet");
101+
args.push("--info");
102102
}
103103

104104
return args;

test/services/android/gradle-build-args-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ async function executeTests(
5959
}
6060
}
6161
const ksPath = temp.path({ prefix: "ksPath" });
62-
const expectedInfoLoggingArgs = ["--quiet"];
62+
const expectedInfoLoggingArgs = ["--info"];
6363
const expectedTraceLoggingArgs = ["--debug"];
6464
const expectedDebugBuildArgs = [
6565
"--stacktrace",

0 commit comments

Comments
 (0)