Skip to content

Commit 65db545

Browse files
committed
NSFS | NOOBAA_LOG_LEVEL is not working as expected
Signed-off-by: naveenpaul1 <napaul@redhat.com>
1 parent 91c3e00 commit 65db545

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/native/fs/fs_napi.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2176,7 +2176,7 @@ set_debug_level(const Napi::CallbackInfo& info)
21762176
{
21772177
int level = info[0].As<Napi::Number>();
21782178
DBG_SET_LEVEL(level);
2179-
LOG("FS::set_debug_level " << level);
2179+
DBG1("FS::set_debug_level " << level);
21802180
return info.Env().Undefined();
21812181
}
21822182

@@ -2187,7 +2187,7 @@ set_log_config(const Napi::CallbackInfo& info)
21872187
bool syslog_enabled = info[1].As<Napi::Boolean>();
21882188
LOG_TO_STDERR_ENABLED = stderr_enabled;
21892189
LOG_TO_SYSLOG_ENABLED = syslog_enabled;
2190-
LOG("FS::set_log_config: " << DVAL(LOG_TO_STDERR_ENABLED) << DVAL(LOG_TO_SYSLOG_ENABLED));
2190+
DBG1("FS::set_log_config: " << DVAL(LOG_TO_STDERR_ENABLED) << DVAL(LOG_TO_SYSLOG_ENABLED));
21912191
return info.Env().Undefined();
21922192
}
21932193

src/native/util/common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ extern bool LOG_TO_SYSLOG_ENABLED;
4545
do { \
4646
const char* log_msg = x.c_str(); \
4747
int facility = LOG_LOCAL0; \
48-
int priority = 0; \
48+
int priority = 5; \
4949
::syslog(priority | facility, "%s", log_msg); \
5050
} while (0)
5151

src/sdk/nb.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,7 @@ interface NativeFS {
977977

978978
dio_buffer_alloc(size: number): Buffer;
979979
set_debug_level(level: number);
980-
set_log_config(stderr_enabled: boolean, syslog_enabled: boolean,);
980+
set_log_config(stderr_enabled: boolean, syslog_enabled: boolean);
981981

982982
S_IFMT: number;
983983
S_IFDIR: number;

0 commit comments

Comments
 (0)