1
0
mirror of https://github.com/ohwgiles/laminar.git synced 2026-11-03 00:54:44 +00:00

don't log full file paths, remove use of KJ_DBG

This commit is contained in:
Oliver Giles
2015-12-06 12:36:12 +01:00
parent 99fd47de68
commit e7fe117426
5 changed files with 63 additions and 26 deletions

View File

@@ -19,9 +19,9 @@
#include "run.h"
#include "node.h"
#include "conf.h"
#include <iostream>
#include <kj/debug.h>
#include "log.h"
#include <iostream>
#include <unistd.h>
#include <boost/filesystem.hpp>
@@ -47,7 +47,7 @@ Run::Run() {
}
Run::~Run() {
KJ_DBG("Run destroyed");
LLOG(INFO, "Run destroyed");
}
std::string Run::reason() const {
@@ -103,11 +103,11 @@ bool Run::step() {
}
printf("[laminar] Executing %s\n", currentScript.c_str());
execl(currentScript.c_str(), currentScript.c_str(), NULL);
KJ_LOG(FATAL, "execl returned", strerror(errno));
LLOG(FATAL, "execl returned", strerror(errno));
_exit(1);
}
KJ_LOG(INFO, "Forked", currentScript, pid);
LLOG(INFO, "Forked", currentScript, pid);
close(pfd[1]);
fd = pfd[0];
this->pid = pid;