~ubuntu-branches/ubuntu/trusty/nordugrid-arc/trusty

« back to all changes in this revision

Viewing changes to src/clients/jura/UsageReporter.cpp

  • Committer: Package Import Robot
  • Author(s): Mattias Ellert
  • Date: 2012-12-13 16:41:31 UTC
  • mfrom: (3.1.11 sid)
  • Revision ID: package-import@ubuntu.com-20121213164131-wii0p2fcv7e3en93
Tags: 2.0.1-1
* 2.0.1 Release
* Drop patches accepted upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
87
87
    }
88
88
 
89
89
    // Seek "<jobnumber>.<randomstring>" files.
90
 
    Arc::RegularExpression logfilepattern("^[0-9]+\\.[^.]+$");
 
90
    Arc::RegularExpression logfilepattern("^[0-9A-Za-z]+\\.[^.]+$");
91
91
    errno = 0;
92
92
    while ((entp = readdir(dirp)) != NULL)
93
93
      {
123
123
                  } 
124
124
                else
125
125
                  {
 
126
                    // Set topic option if it is needed
 
127
                    if ( (*logfile)["loggerurl"].substr(0,4) == "APEL" ) {
 
128
                       (*logfile)["topic"] = (*logfile)["jobreport_option_topic"];
 
129
                    }
126
130
                    //Pass job log file content to the appropriate 
127
131
                    //logging destination
128
132
                    dests->report(*logfile);