diff options
author | TreeHugger Robot <treehugger-gerrit@google.com> | 2020-05-28 22:19:14 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2020-05-28 22:19:14 +0000 |
commit | 7511028457e204e382ee4a9de736301dbe19cc10 (patch) | |
tree | a33df67e55381d197b8402899d8bc85d15c06572 /PermissionController/src/com/android/permissioncontroller/DumpableLog.kt | |
parent | 68c5deaefb1f467c9edab59bb06c5a4354a787ac (diff) | |
parent | 5d26025bec545446b73aa98205d4e5af1d8e40bc (diff) | |
download | Permission-7511028457e204e382ee4a9de736301dbe19cc10.tar.gz |
Merge "One time regrant auto revoked permissions" into rvc-dev
Diffstat (limited to 'PermissionController/src/com/android/permissioncontroller/DumpableLog.kt')
-rw-r--r-- | PermissionController/src/com/android/permissioncontroller/DumpableLog.kt | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/PermissionController/src/com/android/permissioncontroller/DumpableLog.kt b/PermissionController/src/com/android/permissioncontroller/DumpableLog.kt index 862c54f9e..bbce5bf5c 100644 --- a/PermissionController/src/com/android/permissioncontroller/DumpableLog.kt +++ b/PermissionController/src/com/android/permissioncontroller/DumpableLog.kt @@ -36,7 +36,7 @@ object DumpableLog { /** * Equivalent to {@link Log.v} */ - fun v(tag: String, message: String, exception: Exception? = null) { + fun v(tag: String, message: String, exception: Throwable? = null) { Log.v(tag, message, exception) addLogToDump("v", tag, message, exception) } @@ -44,7 +44,7 @@ object DumpableLog { /** * Equivalent to {@link Log.d} */ - fun d(tag: String, message: String, exception: Exception? = null) { + fun d(tag: String, message: String, exception: Throwable? = null) { Log.d(tag, message, exception) addLogToDump("d", tag, message, exception) } @@ -52,7 +52,7 @@ object DumpableLog { /** * Equivalent to {@link Log.i} */ - fun i(tag: String, message: String, exception: Exception? = null) { + fun i(tag: String, message: String, exception: Throwable? = null) { Log.i(tag, message, exception) addLogToDump("i", tag, message, exception) } @@ -60,7 +60,7 @@ object DumpableLog { /** * Equivalent to {@link Log.w} */ - fun w(tag: String, message: String, exception: Exception? = null) { + fun w(tag: String, message: String, exception: Throwable? = null) { Log.w(tag, message, exception) addLogToDump("w", tag, message, exception) } @@ -68,12 +68,12 @@ object DumpableLog { /** * Equivalent to {@link Log.e} */ - fun e(tag: String, message: String, exception: Exception? = null) { + fun e(tag: String, message: String, exception: Throwable? = null) { Log.e(tag, message, exception) addLogToDump("e", tag, message, exception) } - private fun addLogToDump(level: String, tag: String, message: String, exception: Exception?) { + private fun addLogToDump(level: String, tag: String, message: String, exception: Throwable?) { synchronized(lock) { // TODO: Needs to be replaced by proper log rotation if (file.length() > MAX_FILE_SIZE) { |