added to config: parameter static_auth_dir_tmp
with a path to directory for tmp files (for upload functino) git-svn-id: svn://ttmath.org/publicrep/winix/trunk@572 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
11
core/log.cpp
11
core/log.cpp
@@ -9,6 +9,7 @@
|
||||
|
||||
#include "log.h"
|
||||
#include <ctime>
|
||||
#include <string.h>
|
||||
|
||||
|
||||
Log::Log()
|
||||
@@ -179,6 +180,16 @@ return *this;
|
||||
}
|
||||
|
||||
|
||||
void Log::SystemErr(int err)
|
||||
{
|
||||
(*this) << "errno: " << err;
|
||||
|
||||
const char * err_msg = strerror(err);
|
||||
|
||||
if( err_msg )
|
||||
(*this) << " (" << err_msg << ")";
|
||||
}
|
||||
|
||||
|
||||
void Log::SaveLog()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user