Browse Source

minor debug aids

David Rose 12 years ago
parent
commit
e36dee223a
2 changed files with 6 additions and 0 deletions
  1. 3 0
      panda/src/pgraph/loader.cxx
  2. 3 0
      panda/src/pgraph/loaderFileTypeRegistry.cxx

+ 3 - 0
panda/src/pgraph/loader.cxx

@@ -486,6 +486,9 @@ load_file_types() {
           loader_cat.warning()
           loader_cat.warning()
             << "Unable to load " << dlname.to_os_specific()
             << "Unable to load " << dlname.to_os_specific()
             << ": " << load_dso_error() << endl;
             << ": " << load_dso_error() << endl;
+        } else if (loader_cat.is_debug()) {
+          loader_cat.debug()
+            << "done loading file type module: " << name << endl;
         }
         }
         
         
       } else if (words.size() > 1) {
       } else if (words.size() > 1) {

+ 3 - 0
panda/src/pgraph/loaderFileTypeRegistry.cxx

@@ -178,6 +178,9 @@ get_type_from_extension(const string &extension) {
           << "Unable to load " << dlname.to_os_specific() << ": " 
           << "Unable to load " << dlname.to_os_specific() << ": " 
           << load_dso_error() << endl;
           << load_dso_error() << endl;
         return NULL;
         return NULL;
+      } else if (loader_cat.is_debug()) {
+        loader_cat.debug()
+          << "done loading file type module: " << name << endl;
       }
       }
 
 
       // Now try again to find the LoaderFileType.
       // Now try again to find the LoaderFileType.