From: Maxim Mamontov Date: Thu, 20 Oct 2011 09:29:10 +0000 (+0300) Subject: Do not log about successful plugin stop if error occures X-Git-Tag: 2.408~58 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/8172e2258d975bcff42e2f2ca5580584f11da890?hp=d76b6138e72d2af01c789a3aaf4b3715d23d440f Do not log about successful plugin stop if error occures --- diff --git a/projects/stargazer/main.cpp b/projects/stargazer/main.cpp index 37582348..4fff88a1 100644 --- a/projects/stargazer/main.cpp +++ b/projects/stargazer/main.cpp @@ -478,7 +478,10 @@ while (modIter != modules.end()) modIter->GetStrError().c_str()); printfd(__FILE__, "Failed to stop module '%s'\n", name.c_str()); } - WriteServLog("Module: \'%s\'. Stop successfull.", modIter->GetPlugin()->GetVersion().c_str()); + else + { + WriteServLog("Module: \'%s\'. Stop successfull.", modIter->GetPlugin()->GetVersion().c_str()); + } ++modIter; }