]> WPIA git - cassiopeia.git/commitdiff
fix: remove formatted logging where not needed
authorFelix Dörre <felix@dogcraft.de>
Fri, 19 Feb 2016 15:14:25 +0000 (16:14 +0100)
committerFelix Dörre <felix@dogcraft.de>
Sun, 27 Mar 2016 10:02:16 +0000 (12:02 +0200)
src/db/psql.cpp

index 7187b9e6ef820068afafa869e9450d59d41f55e3..b543b9e46d080140a79fa60e6e8516b40d7a916a 100644 (file)
@@ -155,14 +155,14 @@ std::pair<std::string, std::string> PostgresJobProvider::getRevocationInfo( std:
 }
 
 void PostgresJobProvider::writeBackRevocation( std::shared_ptr<Job> 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" );
 }