mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
make less logging noise from ScrollingModelImpl in tests on TeamCity
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2014 JetBrains s.r.o.
|
||||
* Copyright 2000-2017 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -78,6 +78,13 @@ public class CompositeLogger extends Logger {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void trace(@Nullable Throwable t) {
|
||||
for (Logger logger : myLoggers) {
|
||||
logger.trace(t);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void info(@NonNls String message) {
|
||||
for (Logger logger : myLoggers) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2010 JetBrains s.r.o.
|
||||
* Copyright 2000-2017 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -142,6 +142,11 @@ public class RareLogger extends Logger {
|
||||
process(Level.TRACE, message, null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void trace(@Nullable Throwable t) {
|
||||
process(Level.TRACE, null, t);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void error(@NonNls String message, @Nullable Throwable t, @NotNull @NonNls String... details) {
|
||||
process(Level.ERROR, message, t, details);
|
||||
|
||||
@@ -137,8 +137,8 @@ public class ScrollingModelImpl implements ScrollingModelEx {
|
||||
|
||||
@Override
|
||||
public void scrollToCaret(@NotNull ScrollType scrollType) {
|
||||
if (LOG.isDebugEnabled()) {
|
||||
LOG.debug(new Throwable());
|
||||
if (LOG.isTraceEnabled()) {
|
||||
LOG.trace(new Throwable());
|
||||
}
|
||||
assertIsDispatchThread();
|
||||
myEditor.validateSize();
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2015 JetBrains s.r.o.
|
||||
* Copyright 2000-2017 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -61,6 +61,11 @@ public class Log4jBasedLogger extends Logger {
|
||||
myLogger.trace(message);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void trace(@Nullable Throwable t) {
|
||||
myLogger.trace("", t);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void info(@NonNls String message) {
|
||||
myLogger.info(message);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2015 JetBrains s.r.o.
|
||||
* Copyright 2000-2017 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -110,6 +110,10 @@ public abstract class Logger {
|
||||
debug(message);
|
||||
}
|
||||
|
||||
public void trace(@Nullable Throwable t) {
|
||||
debug(t);
|
||||
}
|
||||
|
||||
public void info(@NotNull Throwable t) {
|
||||
info(t.getMessage(), t);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user