Don't use groovy strings where we don't need to

This commit is contained in:
R. Tyler Croy 2015-09-01 16:29:34 -07:00
parent 4f416e84dd
commit 7b918d448a
No known key found for this signature in database
GPG Key ID: 1426C7DC3F51E16F
1 changed files with 3 additions and 3 deletions

View File

@ -58,8 +58,8 @@ class Main {
} }
logger.info("Running with: ${args}") logger.info("Running with: ${args}")
logger.warn("Using: zookeepers={} statsd={}:{}", zookeeperHosts, statsdHost, statsdPort) logger.warn('Using: zookeepers={} statsd={}:{}', zookeeperHosts, statsdHost, statsdPort)
logger.info("Reporting every {} seconds", delayInSeconds) logger.info('Reporting every {} seconds', delayInSeconds)
if (cli.hasOption('prefix')) { if (cli.hasOption('prefix')) {
statsdPrefix = "${cli.getOptionValue('prefix')}.${METRICS_PREFIX}" statsdPrefix = "${cli.getOptionValue('prefix')}.${METRICS_PREFIX}"
@ -148,7 +148,7 @@ class Main {
/* Start the reporter if we've got it */ /* Start the reporter if we've got it */
reporter?.start(delayInSeconds, TimeUnit.SECONDS) reporter?.start(delayInSeconds, TimeUnit.SECONDS)
logger.info("Starting wait loop...") logger.info('Starting wait loop...')
synchronized(this) { synchronized(this) {
wait() wait()
} }