     (jdbc/with-transacted-connection db
       (scf-storage/maybe-activate-node! certname producer-timestamp)
       (scf-storage/add-report! report received))
-    (log/infof "[%s] [%s] puppet v%s - %s"
+    (log/infof (i18n/trs "[%s-%d] '%s' puppet v%s command processed for %s")
                id
+               (tcoerce/to-long received)
                (command-names :store-report)
                puppet_version
                certname)))

      deactivate-node-wire-v2->wire-3))

(defn deactivate-node*
  [{:keys [id payload]} db]
  (let [certname (:certname payload)
        producer-timestamp (to-timestamp (:producer_timestamp payload (now)))]
    (jdbc/with-transacted-connection db
      (when-not (scf-storage/certname-exists? certname)
        (scf-storage/add-certname! certname))
      (scf-storage/deactivate-node! certname producer-timestamp))
    (log/infof "[%s] [%s] %s" id (command-names :deactivate-node) certname)))

(defn deactivate-node [{:keys [payload version] :as command} db]
  (-> command

    (jdbc/with-transacted-connection' db :repeatable-read
      (scf-storage/maybe-activate-node! certname producer-timestamp)
      (scf-storage/replace-catalog! catalog received))
    (log/infof (i18n/trs "[%s-%d] '%s' command processed for %s")
               id (tcoerce/to-long received) (command-names :replace-catalog) certname)))

(defn replace-catalog [{:keys [payload received version] :as command} db]
  (let [validated-payload (upon-error-throw-fatality
