Working on linux now, better logging

This commit is contained in:
2026-03-26 16:38:29 +01:00
parent 5e5e89284b
commit dd96fe1f34
14 changed files with 118 additions and 11 deletions

View File

@@ -63,7 +63,10 @@ int main(int argc, char *argv[])
{
const char *me = argv[0];
INFO1("%s runs\n", argv[0]);
{
time_t my_time = time(NULL);
INFO1("Starting at %s", ctime(&my_time));
}
if (argc < 6) {
ERROR1("%s: wrong number of arguments\n", me);
@@ -113,6 +116,11 @@ int main(int argc, char *argv[])
delete handler->shm;
delete handler;
{
time_t my_time = time(NULL);
INFO1("Exiting at %s", ctime(&my_time));
}
return 0;
}
@@ -140,6 +148,13 @@ void Handler::run()
result_queue->enqueue(oke);
}
break;
case CMD_SET_LOGLEVEL: {
int ll = data_obj["wv"].toInt();
setLogLevel(ll);
bool oke = true;
result_queue->enqueue(oke);
}
break;
case CMD_CONTEXT_NEW: {
QString boilerplate_js = data_obj["boilerplate_js"].toString();
bool has_pem_cert = data_obj["has_pem_cert"].toBool();