diff options
author | Stefan Radomski <github@mintwerk.de> | 2017-04-27 07:27:08 (GMT) |
---|---|---|
committer | Stefan Radomski <github@mintwerk.de> | 2017-04-27 07:27:08 (GMT) |
commit | a925b941c640289ffd967cab457ab804de69399a (patch) | |
tree | fc9b769c18b94e0ab80a669e1af1103d71507828 /src/uscxml/plugins/invoker/dirmon | |
parent | 33a817259588101ba9d4bcab8e73d3fe1759a196 (diff) | |
download | uscxml-a925b941c640289ffd967cab457ab804de69399a.zip uscxml-a925b941c640289ffd967cab457ab804de69399a.tar.gz uscxml-a925b941c640289ffd967cab457ab804de69399a.tar.bz2 |
Added explicit newline to most logs
Diffstat (limited to 'src/uscxml/plugins/invoker/dirmon')
-rw-r--r-- | src/uscxml/plugins/invoker/dirmon/DirMonInvoker.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/uscxml/plugins/invoker/dirmon/DirMonInvoker.cpp b/src/uscxml/plugins/invoker/dirmon/DirMonInvoker.cpp index e9cf702..32de35c 100644 --- a/src/uscxml/plugins/invoker/dirmon/DirMonInvoker.cpp +++ b/src/uscxml/plugins/invoker/dirmon/DirMonInvoker.cpp @@ -98,7 +98,7 @@ void DirMonInvoker::eventFromSCXML(const Event& event) { void DirMonInvoker::invoke(const std::string& source, const Event& req) { if (req.params.find("dir") == req.params.end()) { - LOG(_callbacks->getLogger(), USCXML_ERROR) << "No dir param given"; + LOG(_callbacks->getLogger(), USCXML_ERROR) << "No dir param given" << std::endl; return; } @@ -136,7 +136,7 @@ void DirMonInvoker::invoke(const std::string& source, const Event& req) { URL url = URL::resolve(dirIter->second.atom, _callbacks->getBaseURL()); if (!url.isAbsolute()) { - LOG(_callbacks->getLogger(), USCXML_ERROR) << "Given directory '" << dirIter->second << "' cannot be transformed to absolute path"; + LOG(_callbacks->getLogger(), USCXML_ERROR) << "Given directory '" << dirIter->second << "' cannot be transformed to absolute path" << std::endl; } else { _dir = url.path(); } @@ -313,7 +313,7 @@ void DirectoryWatch::updateEntries(bool reportAsExisting) { // stat directory for modification date struct stat dirStat; if (stat((_dir + _relDir).c_str(), &dirStat) != 0) { - LOG(_logger, USCXML_ERROR) << "Error with stat on directory " << _dir << ": " << strerror(errno); + LOG(_logger, USCXML_ERROR) << "Error with stat on directory " << _dir << ": " << strerror(errno) << std::endl; return; } @@ -327,7 +327,7 @@ void DirectoryWatch::updateEntries(bool reportAsExisting) { DIR *dp; dp = opendir((_dir + _relDir).c_str()); if (dp == NULL) { - LOG(_logger, USCXML_ERROR) << "Error opening directory " << _dir + _relDir << ": " << strerror(errno); + LOG(_logger, USCXML_ERROR) << "Error opening directory " << _dir + _relDir << ": " << strerror(errno) << std::endl; return; } // iterate all entries and see what changed @@ -352,7 +352,7 @@ void DirectoryWatch::updateEntries(bool reportAsExisting) { struct stat fileStat; if (stat(filename.c_str(), &fileStat) != 0) { - LOG(_logger, USCXML_ERROR) << "Error with stat on directory entry: " << filename << ": " << strerror(errno); + LOG(_logger, USCXML_ERROR) << "Error with stat on directory entry: " << filename << ": " << strerror(errno) << std::endl; continue; } |