Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to disable/decrease noisy logs #1255

Closed
Tracked by #1225
yerzhant opened this issue Dec 7, 2024 · 6 comments · Fixed by #1325
Closed
Tracked by #1225

How to disable/decrease noisy logs #1255

yerzhant opened this issue Dec 7, 2024 · 6 comments · Fixed by #1325
Assignees

Comments

@yerzhant
Copy link

yerzhant commented Dec 7, 2024

No description provided.

@navaronbracke
Copy link
Collaborator

navaronbracke commented Dec 9, 2024

What logs are you referring to? Are you referring to the log of the Android camera?

We can potentially set the log level with https://developer.android.com/media/camera/camerax/configuration#logging

@navaronbracke navaronbracke self-assigned this Dec 9, 2024
@yerzhant
Copy link
Author

yerzhant commented Dec 9, 2024

This kind on logs:

D/CameraStateRegistry( 7462): -------------------------------------------------------------------
D/CameraStateRegistry( 7462): Open count: 1 (Max allowed: 1)
D/CameraStateMachine( 7462): New public camera state CameraState{type=OPEN, error=null} from OPEN and null
D/CameraStateMachine( 7462): Publishing new public camera state CameraState{type=OPEN, error=null}
D/UseCaseAttachState( 7462): All use case: [androidx.camera.core.Preview-dcc559a7-28c3-48ea-88d3-c15beb4ee560151614103, androidx.camera.core.ImageAnalysis-31f0ae4c-ed4a-44bf-86b0-b6a49e47b1ca28966020] for camera: 0
D/UseCaseAttachState( 7462): Active and attached use case: [androidx.camera.core.Preview-dcc559a7-28c3-48ea-88d3-c15beb4ee560151614103, androidx.camera.core.ImageAnalysis-31f0ae4c-ed4a-44bf-86b0-b6a49e47b1ca28966020] for camera: 0
D/SyncCaptureSessionBase( 7462): [androidx.camera.camera2.internal.SynchronizedCaptureSessionBaseImpl@ea6b513] getSurface...done
D/CaptureSession( 7462): Opening capture session.
D/DeferrableSurface( 7462): use count+1, useCount=2 androidx.camera.core.SurfaceRequest$2@7821d8f
D/DeferrableSurface( 7462): New surface in use[total_surfaces=3, used_surfaces=2](androidx.camera.core.impl.ImmediateSurface@beada08}
D/DeferrableSurface( 7462): use count+1, useCount=1 androidx.camera.core.impl.ImmediateSurface@beada08
D/CaptureSession( 7462): Attempting to send capture request onConfigured
D/CaptureSession( 7462): Issuing request for session.
D/Camera2CaptureRequestBuilder( 7462): createCaptureRequest
D/CaptureSession( 7462): Issuing capture request.
I/CameraManagerGlobal( 7462): Camera 0 facing CAMERA_FACING_BACK state now CAMERA_STATE_ACTIVE for client kz.nurai.mobile API Level 2 User Id 0
D/Camera2CaptureRequestBuilder( 7462): createCaptureRequest
D/CaptureSession( 7462): CameraCaptureSession.onConfigured() mState=OPENED
D/CaptureSession( 7462): CameraCaptureSession.onReady() OPENED
I/ViewRootImpl@afbdc19[MainActivity]( 7462): onDisplayChanged oldDisplayState=2 newDisplayState=2

@navaronbracke
Copy link
Collaborator

All those logs, except the last line, are from the AndroidX camera service. We should be able to turn those off with the above.

@yerzhant
Copy link
Author

yerzhant commented Dec 9, 2024

Ok! Thanks a lot for the advice and replies!

@yerzhant yerzhant closed this as completed Dec 9, 2024
@navaronbracke
Copy link
Collaborator

@yerzhant I wonder, though, don't you want mobile_scanner to turn this off for you? Then we could reopen this to track that effort.

@yerzhant
Copy link
Author

yerzhant commented Dec 9, 2024

Yep, that would be great! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants