Skip to content
Snippets Groups Projects
Commit 3d0c0b09 authored by Alexander van Amesfoort's avatar Alexander van Amesfoort
Browse files

Task #3185: minor comment, logger and header guard fixes in OutputProc pkg

parent c49fcdf8
No related branches found
No related tags found
No related merge requests found
......@@ -59,7 +59,8 @@ namespace Cobalt
sbuf = sbuf.substr(0, pos);
vector<string> tokens(StringUtil::tokenize(sbuf, ws));
// We expect 3 tokens (columns): stationName (0), board (1), destNode (2); ignore other tokens and "empty" lines.
// We expect 3 tokens (columns): stationName (0), board (1), destNode (2).
// Ignore other tokens and "empty" lines.
if (tokens.size() >= 3) {
itsMapping.insert(make_pair(tokens[2], make_pair(tokens[0], tokens[1])));
}
......
......@@ -19,8 +19,8 @@
//#
//# $Id$
#ifndef TBB_STATIC_MAPPING_H
#define TBB_STATIC_MAPPING_H 1
#ifndef TBBSTATICMAPPING_H
#define TBBSTATICMAPPING_H 1
#include <string>
#include <vector>
......@@ -59,5 +59,5 @@ namespace Cobalt
} // namespace Cobalt
} // namespace LOFAR
#endif // TBB_CONNECTIONS_H
#endif
//# plotMS.cc
//# Copyright (C) 2011-2013 ASTRON (Netherlands Institute for Radio Astronomy)
//# Copyright (C) 2011-2015 ASTRON (Netherlands Institute for Radio Astronomy)
//# P.O. Box 2, 7990 AA Dwingeloo, The Netherlands
//#
//# This file is part of the LOFAR software suite.
......@@ -82,13 +82,13 @@ static void usage(char *progname, int exitcode)
int main(int argc, char *argv[])
{
#if defined HAVE_LOG4CPLUS
INIT_LOGGER(string(getenv("LOFARROOT") ? : ".") + "/etc/Storage.log_prop");
INIT_LOGGER(string(getenv("LOFARROOT") ? : ".") + "/etc/outputProc.log_prop");
#elif defined HAVE_LOG4CXX
#error LOG4CXX support is broken (nonsensical?) -- please fix this code if you want to use it
Context::initialize();
setLevel("Global",8);
#else
INIT_LOGGER_WITH_SYSINFO(str(boost::format("Storage@%02d") % (argc > 1 ? atoi(argv[1]) : -1)));
INIT_LOGGER_WITH_SYSINFO(str(boost::format("outputProc@%02d") % (argc > 1 ? atoi(argv[1]) : -1)));
#endif
try {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment