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:
10
src/run.cpp
10
src/run.cpp
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user