Skip to content

Commit

Permalink
move a method
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Rzeszutek committed Dec 8, 2022
1 parent 7bc6f5d commit 11f609e
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
@AutoValue
abstract class InMemoryLog {

static InMemoryLog create(
String name, InternalLogger.Level level, String message, @Nullable Throwable error) {
return new AutoValue_InMemoryLog(name, level, message, error);
}

abstract String name();

abstract InternalLogger.Level level();
Expand All @@ -22,11 +27,6 @@ abstract class InMemoryLog {
@Nullable
abstract Throwable error();

static InMemoryLog create(
String name, InternalLogger.Level level, String message, @Nullable Throwable error) {
return new AutoValue_InMemoryLog(name, level, message, error);
}

void dump(PrintStream out) {
out.print("[otel.javaagent] ");
out.print(level());
Expand Down

0 comments on commit 11f609e

Please sign in to comment.