forked from getsentry/sentry-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLogUtils.java
More file actions
25 lines (21 loc) · 761 Bytes
/
LogUtils.java
File metadata and controls
25 lines (21 loc) · 761 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package io.sentry.util;
import io.sentry.ILogger;
import io.sentry.SentryLevel;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
@ApiStatus.Internal
public final class LogUtils {
public static void logIfNotFlushable(final @NotNull ILogger logger, final @Nullable Object hint) {
logger.log(
SentryLevel.DEBUG,
"%s is not Flushable",
hint != null ? hint.getClass().getCanonicalName() : "Hint");
}
public static void logIfNotRetryable(final @NotNull ILogger logger, final @Nullable Object hint) {
logger.log(
SentryLevel.DEBUG,
"%s is not Retryable",
hint != null ? hint.getClass().getCanonicalName() : "Hint");
}
}