From: Felix Dörre Date: Fri, 19 Feb 2016 15:14:25 +0000 (+0100) Subject: fix: remove formatted logging where not needed X-Git-Url: https://code.wpia.club/?p=cassiopeia.git;a=commitdiff_plain;h=ed1082d9e86cbb453c5ce3be0e09c7020a6adcbd fix: remove formatted logging where not needed --- diff --git a/src/db/psql.cpp b/src/db/psql.cpp index 7187b9e..b543b9e 100644 --- a/src/db/psql.cpp +++ b/src/db/psql.cpp @@ -155,14 +155,14 @@ std::pair PostgresJobProvider::getRevocationInfo( std: } void PostgresJobProvider::writeBackRevocation( std::shared_ptr job, std::string date ) { - logger::errorf( "Revoking at " + date); + logger::notef( "Revoking at %s", date); pqxx::work txn(c); - logger::errorf( "executing" ); + logger::note( "executing" ); pqxx::result r = txn.exec( "UPDATE certs SET revoked = " + txn.quote( pgTime( date ) ) + " WHERE id = " + txn.quote( job->target ) ); if( r.affected_rows() != 1 ){ throw std::runtime_error("Only one row should be updated."); } - logger::errorf( "committing" ); + logger::note( "committing" ); txn.commit(); - logger::errorf( "committed" ); + logger::note( "committed" ); }