*: print out configuration when necessary

Fix #1582 
what about put this if part in a separate function `printInitial`?
so it doesn't need a initial argument for this function