/*-
* ============LICENSE_START=======================================================
* Copyright (C) 2016-2018 Ericsson. All rights reserved.
+ * Modifications Copyright (C) 2020 Nordix Foundation.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
}
if (LOGGER.isDebugEnabled()) {
- LOGGER.debug(name + ": event " + executionId + ':' + eventName + " is a reply to a REST server call from "
- + name);
+ LOGGER.debug("{}: event {}:{} is a reply to a REST server call from {}",
+ name, executionId, eventName, name);
}
// Add the event to the received event cache
/*-
* ============LICENSE_START=======================================================
* Copyright (C) 2016-2018 Ericsson. All rights reserved.
+ * Modifications Copyright (C) 2020 Nordix Foundation.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
}
} while (!textBlock.isEndOfText());
} catch (final Exception e) {
- LOGGER.warn("\"" + consumerName + "\" failed to read event from file: \""
- + fileCarrierTechnologyParameters.getFileName() + "\"", e);
+ LOGGER.warn("\"{}\" failed to read event from file: \"{}\"", consumerName,
+ fileCarrierTechnologyParameters.getFileName(), e);
} finally {
try {
eventInputStream.close();
} catch (final IOException e) {
- LOGGER.warn(APEX_FILE_CONSUMER_PREAMBLE + consumerName + "\" failed to close file: \""
- + fileCarrierTechnologyParameters.getFileName() + "\"", e);
+ LOGGER.warn("{}{}\" failed to close file: \"{}\"", APEX_FILE_CONSUMER_PREAMBLE, consumerName,
+ fileCarrierTechnologyParameters.getFileName(), e);
}
}
try {
eventInputStream.close();
} catch (final IOException e) {
- LOGGER.warn(APEX_FILE_CONSUMER_PREAMBLE + consumerName + "\" failed to close file for reading: \""
- + fileCarrierTechnologyParameters.getFileName() + "\"", e);
+ LOGGER.warn("{}{}\" failed to close file for reading: \"{}\"",
+ APEX_FILE_CONSUMER_PREAMBLE, consumerName, fileCarrierTechnologyParameters.getFileName(), e);
}
if (consumerThread.isAlive() && !consumerThread.isInterrupted()) {
* ============LICENSE_START=======================================================
* Copyright (C) 2019-2020 Nordix Foundation.
* Modifications Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
+ * Modifications Copyright (C) 2020 Nordix Foundation.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* @param args the command line arguments
*/
public ApexStarterMain(final String[] args) {
- LOGGER.info("In ApexStarter with parameters " + Arrays.toString(args));
+ final String params = Arrays.toString(args);
+ LOGGER.info("In ApexStarter with parameters {}", params);
// Check the arguments
final ApexStarterCommandLineArguments arguments = new ApexStarterCommandLineArguments();