Merge pull request #302 from RobbKistler/syslog-level

Fix syslog level used by S3FS_PRN_EXIT()
This commit is contained in:
Takeshi Nakatani 2015-11-26 20:35:32 +09:00
commit 9cc0fd2240

View File

@ -85,7 +85,8 @@ enum s3fs_log_level{
if(foreground){ \ if(foreground){ \
fprintf(stderr, "s3fs: " fmt "%s\n", __VA_ARGS__); \ fprintf(stderr, "s3fs: " fmt "%s\n", __VA_ARGS__); \
}else{ \ }else{ \
syslog(S3FS_LOG_CRIT, "s3fs: " fmt "%s", __VA_ARGS__); \ fprintf(stderr, "s3fs: " fmt "%s\n", __VA_ARGS__); \
syslog(S3FS_LOG_LEVEL_TO_SYSLOG(S3FS_LOG_CRIT), "s3fs: " fmt "%s", __VA_ARGS__); \
} }
// [NOTE] // [NOTE]