Skip to content
Snippets Groups Projects
Commit 811029ad authored by Raphael GIRARDOT's avatar Raphael GIRARDOT
Browse files

TTS connexion information logs reviewed (TANGOARCH-888)

parent ee5ff75a
No related branches found
No related tags found
No related merge requests found
...@@ -7,6 +7,8 @@ public interface ApiConstants { ...@@ -7,6 +7,8 @@ public interface ApiConstants {
public static final String TDB = "TDB"; public static final String TDB = "TDB";
public static final String TTS = "TTS"; public static final String TTS = "TTS";
public static final String TTS_DEVICE_CLASS = "TimeseriesArchiver"; public static final String TTS_DEVICE_CLASS = "TimeseriesArchiver";
public static final String PORT = "Port";
public static final String DEFAULT = "default one";
// ///////////////////////////////////////// // // ///////////////////////////////////////// //
// Java properties and environment variables // // Java properties and environment variables //
......
...@@ -66,14 +66,12 @@ public class DbConnectionManager implements ApiConstants { ...@@ -66,14 +66,12 @@ public class DbConnectionManager implements ApiConstants {
StringBuilder builder = new StringBuilder(TTS); StringBuilder builder = new StringBuilder(TTS);
builder.append('\n').append(DbConnectionInfo.DB_HOST).append(IConfiguration.DISPAY_SEPARATOR) builder.append('\n').append(DbConnectionInfo.DB_HOST).append(IConfiguration.DISPAY_SEPARATOR)
.append(params.getHost()); .append(params.getHost());
builder.append('\n').append(PORT).append(IConfiguration.DISPAY_SEPARATOR)
.append(ApiUtils.getProperty(TTS_PORT_PROPERTY, TTS_PORT_ENV, DEFAULT));
builder.append('\n').append(DbConnectionInfo.DB_NAME).append(IConfiguration.DISPAY_SEPARATOR) builder.append('\n').append(DbConnectionInfo.DB_NAME).append(IConfiguration.DISPAY_SEPARATOR)
.append(params.getName()); .append(params.getName());
builder.append('\n').append(DbConnectionInfo.DB_SCHEMA).append(IConfiguration.DISPAY_SEPARATOR)
.append(params.getSchema());
builder.append('\n').append(DbConnectionInfo.DB_USER).append(IConfiguration.DISPAY_SEPARATOR) builder.append('\n').append(DbConnectionInfo.DB_USER).append(IConfiguration.DISPAY_SEPARATOR)
.append(params.getUser()); .append(params.getUser());
builder.append('\n').append(DbConnectionInfo.DB_PASSWORD).append(IConfiguration.DISPAY_SEPARATOR)
.append(params.getPassword());
Logger tmp = LoggerFactory.getLogger(HdbTdbConnectionParameters.class); Logger tmp = LoggerFactory.getLogger(HdbTdbConnectionParameters.class);
if (tmp.isInfoEnabled() && !LOGGER.isInfoEnabled()) { if (tmp.isInfoEnabled() && !LOGGER.isInfoEnabled()) {
tmp.info(builder.toString()); tmp.info(builder.toString());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment