From ed1082d9e86cbb453c5ce3be0e09c7020a6adcbd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Felix=20D=C3=B6rre?= Date: Fri, 19 Feb 2016 16:14:25 +0100 Subject: [PATCH] fix: remove formatted logging where not needed --- src/db/psql.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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" ); } -- 2.47.3