Android Studio 3.1のlogcatが微妙におかしい
Android Studio3.1を使っていて気付いたのが、logcatの出力が微妙におかしいということ。
先頭にくっついている日付やパッケージ名などの付加情報部分が時折欠けてしまうのです。例えばこんな感じに。
05-18 17:21:52.097 8984-9210/com.example.testapp W/GooglePlayServicesUtil: Google Play Store is missing.
Google Play Store is missing.
05-18 17:21:52.433 8984-9021/com.example.testapp W/GooglePlayServicesUtil: Google Play services is missing.
期待しているのは以下のような形です。
05-18 17:21:52.097 8984-9210/com.example.testapp W/GooglePlayServicesUtil: Google Play Store is missing.
05-18 17:21:52.100 8984-9210/com.example.testapp W/GooglePlayServicesUtil: Google Play Store is missing.
05-18 17:21:52.433 8984-9021/com.example.testapp W/GooglePlayServicesUtil: Google Play services is missing.
何か設定でもあるのかな?と思って調べてみたら不具合でした。
- Android Studio 3.1 Logcat prefix not always showing and breaking pretty logger - Stack Overflow
- Logcat window deduplicating logcat headers with similar content [77305804] - Visible to Public - Issue Tracker
Googleの中の人が
This change in behavior was inadvertent and I reverted it. The fix will go out in 3.2.
とコメントしています。「不注意」とあるので意図して挙動を変えたわけではなさそう。
Issue Trackerによると3.2 Canary 13で修正予定とのこと。 このためだけにCanaryを使うのはチャレンジングすぎるので、3.2の安定版がリリースされるまでは我慢ですね...
関連(するかもしれない)記事
おススメ