1
0
mirror of https://github.com/ohwgiles/laminar.git synced 2026-10-18 00:54:25 +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

@@ -75,7 +75,7 @@ Laminar::Laminar(const char *home) :
homePath(kj::Path::parse(&home[1])),
fsHome(kj::newDiskFilesystem()->getRoot().openSubdir(homePath, kj::WriteMode::MODIFY))
{
KJ_ASSERT(home[0] == '/');
LASSERT(home[0] == '/');
archiveUrl = ARCHIVE_URL_DEFAULT;
if(char* envArchive = getenv("LAMINAR_ARCHIVE_URL")) {