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

logging: strip full paths from __FILE__ at compile-time

This commit is contained in:
Oliver Giles
2019-04-11 22:14:26 +03:00
parent bcb8b438f3
commit 0c67d4c844
4 changed files with 44 additions and 11 deletions

View File

@@ -82,7 +82,7 @@ bool Run::configure(uint buildNum, std::shared_ptr<Node> nd, const kj::Directory
kj::Path rd{"run",name,std::to_string(buildNum)};
bool createWorkdir = true;
KJ_IF_MAYBE(ls, fsHome.tryLstat(rd)) {
KJ_ASSERT(ls->type == kj::FsNode::Type::DIRECTORY);
LASSERT(ls->type == kj::FsNode::Type::DIRECTORY);
LLOG(WARNING, "Working directory already exists, removing", rd.toString());
if(fsHome.tryRemove(rd) == false) {
LLOG(WARNING, "Failed to remove working directory");
@@ -194,7 +194,7 @@ bool Run::step() {
PATH.append(p);
}
KJ_SYSCALL(chdir((rootPath/currentScript.cwd).toString(true).cStr()));
LSYSCALL(chdir((rootPath/currentScript.cwd).toString(true).cStr()));
// conf file env vars
for(kj::Path& file : env) {