Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0822347d authored by Pinyao Ting's avatar Pinyao Ting
Browse files

ShortcutService log clean up.

Bug: 378708195
Change-Id: Iac68c4e44224f52510924e0433c09cdd3215a903
Test: manual
Flag: EXEMPT refactor
parent 1168ab8c
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -1022,7 +1022,7 @@ public class ShortcutService extends IShortcutService.Stub {
                // Close.
                file.finishWrite(outs);
            } catch (IOException e) {
                Slog.e(TAG, "Failed to write to file " + file.getBaseFile(), e);
                Slog.w(TAG, "Failed to write to file " + file.getBaseFile(), e);
                file.failWrite(outs);
            }
        }
@@ -1055,7 +1055,7 @@ public class ShortcutService extends IShortcutService.Stub {
                    final String tag = parser.getName();
                    if (depth == 1) {
                        if (!TAG_ROOT.equals(tag)) {
                            Slog.e(TAG, "Invalid root tag: " + tag);
                            Slog.v(TAG, "Invalid root tag: " + tag);
                            return;
                        }
                        continue;
@@ -1066,7 +1066,7 @@ public class ShortcutService extends IShortcutService.Stub {
                            mRawLastResetTime.set(parseLongAttribute(parser, ATTR_VALUE));
                            break;
                        default:
                            Slog.e(TAG, "Invalid tag: " + tag);
                            Slog.v(TAG, "Invalid tag: " + tag);
                            break;
                    }
                }
@@ -1113,7 +1113,7 @@ public class ShortcutService extends IShortcutService.Stub {
                // Remove all dangling bitmap files.
                cleanupDanglingBitmapDirectoriesLocked(userId);
            } catch (XmlPullParserException | IOException e) {
                Slog.e(TAG, "Failed to write to file " + file, e);
                Slog.w(TAG, "Failed to write to file " + file, e);
                file.failWrite(os);
            }
        }