*: print out configuration when necessary

Fix #1582 
discovery URL =