mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-19 18:35:07 +03:00
qcam: Make log less verbose by default
The qcam log prints one message per frame, which is pretty verbose. This feature is useful for debugging, but not necessarily as a default option. Silence it by default, and add a -v/--verbose command line parameter to make the log verbose. While this could have been handled manually by checking a verbose flag when printing the message, the feature is instead integrated with the Qt log infrastructure to make it more flexible. Messages printed by qDebug() are now silenced by default and controlled by the -v/--verbose argument. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
parent
ed895fd0d5
commit
02b129dab5
6 changed files with 61 additions and 1 deletions
|
@ -746,7 +746,7 @@ void MainWindow::processViewfinder(FrameBuffer *buffer)
|
|||
fps = lastBufferTime_ && fps ? 1000000000.0 / fps : 0.0;
|
||||
lastBufferTime_ = metadata.timestamp;
|
||||
|
||||
qInfo().noquote()
|
||||
qDebug().noquote()
|
||||
<< QString("seq: %1").arg(metadata.sequence, 6, 10, QLatin1Char('0'))
|
||||
<< "bytesused:" << metadata.planes[0].bytesused
|
||||
<< "timestamp:" << metadata.timestamp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue