50188. forcing stderr/out output to be debug only

This commit is contained in:
valeski%netscape.com 2000-09-11 22:08:43 +00:00
Родитель 0a8271f14c
Коммит 0e846ae2d1
2 изменённых файлов: 14 добавлений и 0 удалений

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

@ -195,14 +195,18 @@ cookie_Localize(char* genericString) {
/* create a bundle for the localization */
NS_WITH_SERVICE(nsIStringBundleService, pStringService, kStringBundleServiceCID, &ret);
if (NS_FAILED(ret)) {
#ifdef DEBUG
printf("cannot get string service\n");
#endif
return v.ToNewUnicode();
}
nsCOMPtr<nsILocale> locale;
nsCOMPtr<nsIStringBundle> bundle;
ret = pStringService->CreateBundle(cookie_localization, locale, getter_AddRefs(bundle));
if (NS_FAILED(ret)) {
#ifdef DEBUG
printf("cannot create instance\n");
#endif
return v.ToNewUnicode();
}
@ -213,7 +217,9 @@ cookie_Localize(char* genericString) {
ret = bundle->GetStringFromName(ptrtmp, getter_Copies(ptrv));
v = ptrv;
if (NS_FAILED(ret)) {
#ifdef DEBUG
printf("cannot get string from name\n");
#endif
return v.ToNewUnicode();
}
return v.ToNewUnicode();

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

@ -383,7 +383,9 @@ NS_NewURItoFile(const char *in, nsFileSpec dirSpec, const char *out)
// Async reading thru the calls of the event sink interface
rv = NS_OpenURI(getter_AddRefs(pChannel), pURL, serv);
if (NS_FAILED(rv)) {
#ifdef DEBUG
printf("ERROR: NewChannelFromURI failed for %s\n", in);
#endif
return rv;
}
@ -648,14 +650,18 @@ Wallet_Localize(char* genericString) {
/* create a bundle for the localization */
nsCOMPtr<nsIStringBundleService> pStringService = do_GetService(kStringBundleServiceCID, &ret);
if (NS_FAILED(ret)) {
#ifdef DEBUG
printf("cannot get string service\n");
#endif
return v.ToNewUnicode();
}
nsCOMPtr<nsILocale> locale;
nsCOMPtr<nsIStringBundle> bundle;
ret = pStringService->CreateBundle(PROPERTIES_URL, locale, getter_AddRefs(bundle));
if (NS_FAILED(ret)) {
#ifdef DEBUG
printf("cannot create instance\n");
#endif
return v.ToNewUnicode();
}
@ -665,7 +671,9 @@ Wallet_Localize(char* genericString) {
PRUnichar *ptrv = nsnull;
ret = bundle->GetStringFromName(ptrtmp, &ptrv);
if (NS_FAILED(ret)) {
#ifdef DEBUG
printf("cannot get string from name\n");
#endif
return v.ToNewUnicode();
}
v = ptrv;