@@ -111,10 +111,36 @@ public static boolean isAndroidStudio() {
111111 }
112112 }
113113
114+ public static void info (@ NotNull Logger logger , @ NotNull Exception e ) {
115+ info (logger , e , false );
116+ }
117+
118+ public static void info (@ NotNull Logger logger , @ NotNull Exception e , boolean sanitizePaths ) {
119+ if (sanitizePaths && FlutterSettings .getInstance ().isFilePathLoggingEnabled ()) {
120+ logger .info (e );
121+ } else {
122+ logger .info (e .toString ());
123+ }
124+ }
125+
126+ public static void warn (@ NotNull Logger logger , @ NotNull Exception e ) {
127+ warn (logger , e , false );
128+ }
129+
130+ public static void warn (@ NotNull Logger logger , @ NotNull Exception e , boolean sanitizePaths ) {
131+ if (sanitizePaths && FlutterSettings .getInstance ().isFilePathLoggingEnabled ()) {
132+ logger .warn (e );
133+ } else {
134+ logger .warn (e .toString ());
135+ }
136+ }
137+
114138 /**
115139 * Write a warning message to the IntelliJ log.
116140 * <p>
117141 * This is separate from LOG.warn() to allow us to decorate the behavior.
142+ *
143+ * This method is deprecated (as we are not decorating this behavior anywhere).
118144 */
119145 public static void warn (@ NotNull Logger logger , @ NotNull Throwable t ) {
120146 logger .warn (t );
@@ -124,6 +150,8 @@ public static void warn(@NotNull Logger logger, @NotNull Throwable t) {
124150 * Write a warning message to the IntelliJ log.
125151 * <p>
126152 * This is separate from LOG.warn() to allow us to decorate the behavior.
153+ *
154+ * This method is deprecated (as we are not decorating this behavior anywhere).
127155 */
128156 public static void warn (@ NotNull Logger logger , @ NotNull String message ) {
129157 logger .warn (message );
@@ -133,6 +161,8 @@ public static void warn(@NotNull Logger logger, @NotNull String message) {
133161 * Write a warning message to the IntelliJ log.
134162 * <p>
135163 * This is separate from LOG.warn() to allow us to decorate the behavior.
164+ *
165+ * This method is deprecated (as we are not decorating this behavior anywhere).
136166 */
137167 public static void warn (@ NotNull Logger logger , @ NotNull String message , @ NotNull Throwable t ) {
138168 logger .warn (message , t );
0 commit comments