if (level <= debug_level) {
#ifdef FULL_LOCATION
if (details) {
- len = bsnprintf(buf, sizeof(buf), "%s: %s:%d ", my_name, get_basename(file), line);
+ len = bsnprintf(buf, sizeof(buf), "%s: %s:%d jid=%u",
+ my_name, get_basename(file), line, get_jobid_from_tid());
} else {
len = 0;
}
BSOCK *dir = jcr->dir_bsock;
if (!authenticate(R_DIRECTOR, dir, jcr)) {
- bnet_fsend(dir, "%s", Dir_sorry);
+ dir->fsend("%s", Dir_sorry);
Dmsg1(dbglvl, "Unable to authenticate Director at %s.\n", dir->who());
Emsg1(M_ERROR, 0, _("Unable to authenticate Director at %s.\n"), dir->who());
bmicrosleep(5, 0);
return 0;
}
- return bnet_fsend(dir, "%s", OK_hello);
+ return dir->fsend("%s", OK_hello);
}
int authenticate_filed(JCR *jcr)
General:
26Sep07
+kes Add JobId to all Dmsg() output.
kes Put some FD auth code on dbglvl rather than fixed.
kes Return insert attributes error message in db msg buffer to avoid
false error messages.