Closed Bug 684222 Opened 13 years ago Closed 13 years ago

Simple way to display a backend in a backenderror

Categories

(Cloud Services :: Server: Core, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: tarek, Assigned: tarek)

References

Details

(Whiteboard: [qa+])

Attachments

(2 files)

When we want to add more details about the backend in a backenderror, we can use 


  BackendError(server='the.server')

This is fine but implies that we know how to get back the server url or ip etc out of the backend. And this can be different depending on the used backend.

I want to introduce two things:

1/ a backend option for backenderror, to pass the backend
2/ a __str__() function every backend should implement, that displays all the unsecured relevant info about the backend (the url, or the ip or anything else relevant)


BackendError will simply dump str(backend)
Assignee: nobody → tarek
Status: NEW → ASSIGNED
Attachment #558775 - Flags: review?(telliott)
Attachment #558775 - Flags: review?(rmiller)
Attachment #558775 - Flags: review?(telliott) → review+
Attachment #558849 - Flags: review?(rmiller) → review+
https://hg.mozilla.org/services/server-core/rev/17b0641356f5
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Need QA steps for verification.
Whiteboard: [qa+]
Attachment #558775 - Flags: review?(rmiller)
Verified in code, actually...
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: