Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
如果log_init ()包含不存在文件夹路径,则创建
  • Loading branch information
Benjamin committed Sep 19, 2014
1 parent c7135b3 commit e9129c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/log.c
Expand Up @@ -14,6 +14,7 @@ __thread char Log_Writer::m_buffer[_LOG_BUFFSIZE];

bool log_init(LogLevel l, const char* p_modulename, const char* p_logdir)
{
//如果路径存在文件夹,则判断是否存在
if (access (p_logdir, 0) == -1)
{
if (mkdir (p_logdir, S_IREAD | S_IWRITE ) < 0)
Expand Down

0 comments on commit e9129c2

Please sign in to comment.