[libcalamares] Be more chatty in GeoIP test application
This commit is contained in:
parent
032ed49cc4
commit
436e1de820
@ -11,7 +11,6 @@
|
|||||||
* This is a test-application that does one GeoIP parse.
|
* This is a test-application that does one GeoIP parse.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <iostream>
|
|
||||||
|
|
||||||
#include "GeoIPFixed.h"
|
#include "GeoIPFixed.h"
|
||||||
#include "GeoIPJSON.h"
|
#include "GeoIPJSON.h"
|
||||||
@ -19,6 +18,10 @@
|
|||||||
#include "GeoIPXML.h"
|
#include "GeoIPXML.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "utils/Logger.h"
|
||||||
|
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
using std::cerr;
|
using std::cerr;
|
||||||
using namespace CalamaresUtils::GeoIP;
|
using namespace CalamaresUtils::GeoIP;
|
||||||
|
|
||||||
@ -34,6 +37,9 @@ main( int argc, char** argv )
|
|||||||
QString format( argv[ 1 ] );
|
QString format( argv[ 1 ] );
|
||||||
QString selector = argc == 3 ? QString( argv[ 2 ] ) : QString();
|
QString selector = argc == 3 ? QString( argv[ 2 ] ) : QString();
|
||||||
|
|
||||||
|
Logger::setupLogLevel(Logger::LOGVERBOSE);
|
||||||
|
cDebug() << "Doing GeoIP interpretation with format=" << format << "selector=" << selector;
|
||||||
|
|
||||||
Interface* handler = nullptr;
|
Interface* handler = nullptr;
|
||||||
if ( QStringLiteral( "json" ) == format )
|
if ( QStringLiteral( "json" ) == format )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user