work on bug 917227: logging in the main process