Add debug log when app is required as module