pyapi MAINTENANCE code formating
@@ -34,17 +34,25 @@ clb_print(NC_VERB_LEVEL level, const char* msg)
switch (level) {
case NC_VERB_ERROR:
PyErr_SetString(libnetconf2Error, msg);
- if (syslogEnabled) {syslog(LOG_ERR, "%s", msg);}
+ if (syslogEnabled) {
+ syslog(LOG_ERR, "%s", msg);
+ }
break;
case NC_VERB_WARNING:
- if (syslogEnabled) {syslog(LOG_WARNING, "%s", msg);}
+ if (syslogEnabled) {
+ syslog(LOG_WARNING, "%s", msg);
+ }
PyErr_WarnEx(libnetconf2Warning, msg, 1);
break;
case NC_VERB_VERBOSE:
- if (syslogEnabled) {syslog(LOG_INFO, "%s", msg);}
+ if (syslogEnabled) {
+ syslog(LOG_INFO, "%s", msg);
+ }
break;
case NC_VERB_DEBUG:
- if (syslogEnabled) {syslog(LOG_DEBUG, "%s", msg);}
+ if (syslogEnabled) {
+ syslog(LOG_DEBUG, "%s", msg);
+ }
break;
}
}
