diff --git a/nse_main.cc b/nse_main.cc index 8e4b39864..24cc278d8 100644 --- a/nse_main.cc +++ b/nse_main.cc @@ -437,7 +437,10 @@ int process_mainloop(lua_State *L) { current = *(running_scripts.begin()); if (current.rr.host->timedOut(&now)) { - printf("thread (%p) timed out\n", (void *) current.thread); + if (o.verbose >= 2) { + log_write(LOG_STDOUT, "%s: target %s timed out.\n", SCRIPT_ENGINE, + current.rr.host->targetipstr()); + } SCRIPT_ENGINE_TRY(process_finalize(L, current.registry_idx)); continue; }