]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Reducing the SHUTTLE output
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 15 Aug 2006 05:32:47 +0000 (05:32 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 15 Aug 2006 05:32:47 +0000 (05:32 +0000)
STEER/AliCDBGrid.cxx
STEER/AliCDBLocal.cxx
STEER/AliCDBStorage.cxx

index c3c2944743846b454a251946cba6f1e09ef2092f..dafdd7990c10d19aa94dece64769fdca50bed08a 100644 (file)
@@ -598,10 +598,10 @@ AliCDBParam* AliCDBGridFactory::CreateParameter(const char* gridString) {
        }
        delete arr; arr=0;
                
-       AliInfo(Form("gridUrl:  %s",gridUrl.Data()));
-       AliInfo(Form("user:     %s",user.Data()));
-       AliInfo(Form("dbFolder: %s",dbFolder.Data()));
-       AliInfo(Form("s.e.:     %s",se.Data()));
+       AliDebug(2, Form("gridUrl:      %s",gridUrl.Data()));
+       AliDebug(2, Form("user: %s",user.Data()));
+       AliDebug(2, Form("dbFolder:     %s",dbFolder.Data()));
+       AliDebug(2, Form("s.e.: %s",se.Data()));
 
        return new AliCDBGridParam(gridUrl, user, dbFolder, se);       
 }
index edca96d77827d60323a9a96766b15f8d5c793152..b057512779836b63b57f4a173a8a600058f5c4a8 100644 (file)
@@ -577,13 +577,17 @@ Bool_t AliCDBLocal::PutEntry(AliCDBEntry* entry) {
        
        entry->SetVersion(id.GetVersion());
        entry->SetSubVersion(id.GetSubVersion());
-       
+
        // write object (key name: "AliCDBEntry")
        Bool_t result = file.WriteTObject(entry, "AliCDBEntry");
        if (!result) AliDebug(2,Form("Can't write entry to file: %s", filename.Data()));
 
        file.Close();
-        if(result) AliInfo(Form("CDB object stored into file %s",filename.Data()));
+        if(result) {
+               // TODO this is to make the SHUTTLE output lighter
+               if(!(id.GetPath().Contains("SHUTTLE/STATUS")))
+                       AliInfo(Form("CDB object stored into file %s",filename.Data()));
+       }
 
        return result;
 }
index 351ba43eb827484392453119075c04165f7786f0..2af734d621b71bb7f34c086315841d04ed79dcda 100644 (file)
@@ -38,7 +38,7 @@ AliCDBStorage::~AliCDBStorage() {
 
 //_____________________________________________________________________________
 void AliCDBStorage::GetSelection(/*const*/ AliCDBId* id) {
-// return required version and subversion from the list of selection criteria 
+// return required version and subversion from the list of selection criteria
        
        TIter iter(&fSelections);
        AliCDBId* aSelection;
@@ -183,7 +183,7 @@ void AliCDBStorage::PrintSelectionList(){
 }
 
 //_____________________________________________________________________________
-AliCDBEntry* AliCDBStorage::Get(const AliCDBId& query) {       
+AliCDBEntry* AliCDBStorage::Get(const AliCDBId& query) {
 // get an AliCDBEntry object from the database
        
        // check if query's path and runRange are valid
@@ -208,18 +208,20 @@ AliCDBEntry* AliCDBStorage::Get(const AliCDBId& query) {
 
        if (oldStatus != kFALSE)
                TH1::AddDirectory(kTRUE);
-               
+
        if (entry) {
                AliInfo(Form("CDB object retrieved: %s", entry->GetId().ToString().Data()));
        } else {
-               AliInfo(Form("No valid CDB object found! request was: name = <%s>, run = %d", 
-                       (query.GetPath()).Data(), query.GetFirstRun()));
+               // TODO this is to make the SHUTTLE output lighter
+               if(!(query.GetPath().Contains("SHUTTLE/STATUS")))
+                       AliInfo(Form("No valid CDB object found! request was: name = <%s>, run = %d",
+                               (query.GetPath()).Data(), query.GetFirstRun()));
        }
-       
+
        // if drain storage is set, drain entry into drain storage
        if(entry && (AliCDBManager::Instance())->IsDrainSet())
                AliCDBManager::Instance()->Drain(entry);
-       
+
        return entry;
 }