]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Tweak in bscan so that plugin object is logged based on its name, not id
authorMichal Rakowski <michal.rakowski@baculasystems.com>
Fri, 6 Nov 2020 11:06:05 +0000 (12:06 +0100)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:02:58 +0000 (09:02 +0100)
bacula/src/stored/bscan.c

index f3ef4e4a85d67c57cab1ddae84ab34dcf3a82c21..e0610f972890d863f46e5b30bd9620d24ac1ecc6 100644 (file)
@@ -811,12 +811,12 @@ static bool record_cb(DCR *dcr, DEV_RECORD *rec)
             }
          } else if (update_db) {
             /* Send it */
-            Pmsg1(0, _("PLUGIN_OBJECT: Inserting Plugin Object (id: %lu) into the catalog\n"), obj_r.ObjectId);
+            Pmsg1(0, _("PLUGIN_OBJECT: Inserting Plugin Object (ObjectName: %s) into the catalog\n"), obj_r.ObjectName);
             if (!db_create_object_record(mjcr, db, &obj_r)) {
                Jmsg1(mjcr, M_FATAL, 0, _("Plugin object create error. %s"), db_strerror(db));
             }
          } else {
-            Pmsg1(0, _("PLUGIN_OBJECT: Found Plugin Object (id: %lu) on the volume\n"), obj_r.ObjectId);
+            Pmsg1(0, _("PLUGIN_OBJECT: Found Plugin Object (ObjectName: %s) on the volume\n"), obj_r.ObjectName);
          }
 
          break;