Added some more debug trace messages...

This commit is contained in:
rpotts%netscape.com 1999-01-15 10:10:46 +00:00
Родитель fa33a30db5
Коммит e8e49e2114
2 изменённых файлов: 44 добавлений и 0 удалений

Просмотреть файл

@ -872,6 +872,15 @@ nsDocLoaderImpl::LoadDocument(const nsString& aURLSpec,
nsURLLoadType loadType;
nsDocumentBindInfo* loader = nsnull;
#ifdef DEBUG
char buffer[256];
aURLSpec.ToCString(buffer, sizeof(buffer));
PR_LOG(gDocLoaderLog, PR_LOG_DEBUG,
("DocLoader - LoadDocument(...) called for %s.",
buffer));
#endif /* DEBUG */
/* Check for initial error conditions... */
if (nsnull == aContainer) {
rv = NS_ERROR_NULL_POINTER;
@ -933,6 +942,9 @@ done:
NS_IMETHODIMP
nsDocLoaderImpl::Stop(void)
{
PR_LOG(gDocLoaderLog, PR_LOG_DEBUG,
("DocLoader - Stop() called\n"));
m_LoadingDocsList->EnumerateForwards(nsDocLoaderImpl::StopBindInfoEnumerator, nsnull);
/*
@ -1067,6 +1079,16 @@ nsDocLoaderImpl::OpenStream(nsIURL *aUrl, nsIStreamListener *aConsumer)
nsDocumentBindInfo* loader = nsnull;
nsURLLoadType loadType = nsURLLoadNormal;
#ifdef DEBUG
const char* buffer;
aUrl->GetSpec(&buffer);
PR_LOG(gDocLoaderLog, PR_LOG_DEBUG,
("DocLoader - OpenStream(...) called for %s.",
buffer));
#endif /* DEBUG */
NS_NEWXPCOM(loader, nsDocumentBindInfo);
if (nsnull == loader) {
rv = NS_ERROR_OUT_OF_MEMORY;

Просмотреть файл

@ -872,6 +872,15 @@ nsDocLoaderImpl::LoadDocument(const nsString& aURLSpec,
nsURLLoadType loadType;
nsDocumentBindInfo* loader = nsnull;
#ifdef DEBUG
char buffer[256];
aURLSpec.ToCString(buffer, sizeof(buffer));
PR_LOG(gDocLoaderLog, PR_LOG_DEBUG,
("DocLoader - LoadDocument(...) called for %s.",
buffer));
#endif /* DEBUG */
/* Check for initial error conditions... */
if (nsnull == aContainer) {
rv = NS_ERROR_NULL_POINTER;
@ -933,6 +942,9 @@ done:
NS_IMETHODIMP
nsDocLoaderImpl::Stop(void)
{
PR_LOG(gDocLoaderLog, PR_LOG_DEBUG,
("DocLoader - Stop() called\n"));
m_LoadingDocsList->EnumerateForwards(nsDocLoaderImpl::StopBindInfoEnumerator, nsnull);
/*
@ -1067,6 +1079,16 @@ nsDocLoaderImpl::OpenStream(nsIURL *aUrl, nsIStreamListener *aConsumer)
nsDocumentBindInfo* loader = nsnull;
nsURLLoadType loadType = nsURLLoadNormal;
#ifdef DEBUG
const char* buffer;
aUrl->GetSpec(&buffer);
PR_LOG(gDocLoaderLog, PR_LOG_DEBUG,
("DocLoader - OpenStream(...) called for %s.",
buffer));
#endif /* DEBUG */
NS_NEWXPCOM(loader, nsDocumentBindInfo);
if (nsnull == loader) {
rv = NS_ERROR_OUT_OF_MEMORY;