Skip to content

ndmp: add more log messages for errors#448

Merged
franku merged 1 commit intomasterfrom
dev/franku/master/ndmp-log-messages
Mar 13, 2020
Merged

ndmp: add more log messages for errors#448
franku merged 1 commit intomasterfrom
dev/franku/master/ndmp-log-messages

Conversation

@franku
Copy link
Contributor

@franku franku commented Mar 11, 2020

No description provided.

Copy link
Member

@pstorz pstorz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have a PR for master and for 18.2, but not for 19. Is that intended?

*/
if (ndma_session_commission(ndmp_sess)) { goto bail_out; }
if (ndma_session_commission(ndmp_sess)) {
Dmsg0(200, "Could not commission the ndma sessiond.\n");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the "d" in sessiond an typo?


if (!GetRobotElementStatus(ua->jcr, store, &ndmp_sess)) { return false; }
if (!GetRobotElementStatus(ua->jcr, store, &ndmp_sess)) {
Dmsg0(200, "Could not get GetRobotElementStatus.\n");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be identical to the wording in line 651:
Dmsg0(200, "Could not get robot element status.\n");

*/
if (!NdmpUpdateStorageMappings(ua, store)) { return drives; }
if (!NdmpUpdateStorageMappings(ua, store)) {
Dmsg0(200, "NdmpUpdateStorageMappings failed\n");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe the Dmsg should contain a prefix of "NdmpGetNumSlots:" and "NdmpGetNumDrives:" here and lin line 692

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dmsg0 prints out FILE and LINE

@franku franku force-pushed the dev/franku/master/ndmp-log-messages branch from 4b92870 to 0f2b03c Compare March 13, 2020 10:58
@franku franku merged commit 0762d29 into master Mar 13, 2020
@franku franku deleted the dev/franku/master/ndmp-log-messages branch March 13, 2020 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants