From 3b843c0d23d19277101277087f43e67ef86654cd Mon Sep 17 00:00:00 2001 From: LordGrey Date: Tue, 11 May 2021 21:06:03 +0200 Subject: [PATCH] Standalone grabber: Add --debug switch --- src/hyperion-aml/hyperion-aml.cpp | 14 ++++++++++++-- src/hyperion-dispmanx/hyperion-dispmanx.cpp | 17 ++++++++++++++--- .../hyperion-framebuffer.cpp | 14 ++++++++++++-- src/hyperion-osx/hyperion-osx.cpp | 14 ++++++++++++-- src/hyperion-qt/hyperion-qt.cpp | 14 ++++++++++++-- src/hyperion-v4l2/hyperion-v4l2.cpp | 9 ++++++++- src/hyperion-x11/hyperion-x11.cpp | 14 ++++++++++++-- src/hyperion-xcb/hyperion-xcb.cpp | 14 ++++++++++++-- 8 files changed, 94 insertions(+), 16 deletions(-) diff --git a/src/hyperion-aml/hyperion-aml.cpp b/src/hyperion-aml/hyperion-aml.cpp index 2dfed16f..cd7288db 100644 --- a/src/hyperion-aml/hyperion-aml.cpp +++ b/src/hyperion-aml/hyperion-aml.cpp @@ -26,6 +26,9 @@ void saveScreenshot(QString filename, const Image & image) int main(int argc, char ** argv) { + Logger *log = Logger::getInstance("AMLOGIC"); + Logger::setLogLevel(Logger::INFO); + std::cout << "hyperion-aml:" << std::endl << "\tVersion : " << HYPERION_VERSION << " (" << HYPERION_BUILD_ID << ")" << std::endl @@ -46,11 +49,18 @@ int main(int argc, char ** argv) Option & argAddress = parser.add