@@ -270,53 +270,53 @@ public int getDataHubPort() {
270270 *
271271 * @param logHostName
272272 */
273- public void setLogHostName (boolean logHostName ) {
274- this .logHostName = logHostName ;
273+ public void setLogHostName (boolean logHostName ) {
274+ this .logHostName = logHostName ;
275275 }
276276
277277 /**
278278 * Gets value of the switch that determines whether to send HostName alongside with the log message
279279 *
280280 * @return logHostName switch value
281281 */
282- public boolean getLogHostName () {
283- return this .logHostName ;
282+ public boolean getLogHostName () {
283+ return this .logHostName ;
284284 }
285285
286286 /**
287287 * Sets the HostName from configuration
288288 *
289289 * @param hostName
290290 */
291- public void setHostName (String hostName ) {
292- this .hostName = hostName ;
291+ public void setHostName (String hostName ) {
292+ this .hostName = hostName ;
293293 }
294294
295295 /**
296296 * Gets HostName parameter
297297 *
298298 * @return Host name field value
299299 */
300- public String getHostName () {
301- return this .hostName ;
300+ public String getHostName () {
301+ return this .hostName ;
302302 }
303303
304304 /**
305305 * Sets LogID parameter from config
306306 *
307307 * @param logID
308308 */
309- public void setLogID (String logID ) {
310- this .logID = logID ;
309+ public void setLogID (String logID ) {
310+ this .logID = logID ;
311311 }
312312
313313 /**
314314 * Gets LogID parameter
315315 *
316316 * @return logID field value
317317 */
318- public String getLogID () {
319- return this .logID ;
318+ public String getLogID () {
319+ return this .logID ;
320320 }
321321
322322 /**
@@ -419,7 +419,9 @@ public void addLineToQueue(String line) {
419419 }
420420
421421 private void addLineToQueue (String line , int limit ) {
422- if (limit == 0 ) { throw new LogTooLongException (); }
422+ if (limit == 0 ) {
423+ dbg ("Message longer than " + RECURSION_LIMIT );
424+ return ; }
423425
424426 //// Check credentials only if logs are sent to LE directly.
425427 // Check that we have all parameters set and socket appender running.
0 commit comments