Skip to content
Snippets Groups Projects
Commit 77dce501 authored by Howard Chu's avatar Howard Chu
Browse files

Omit logpurge attr if no purge time was configured

parent bc8550e3
No related branches found
No related tags found
No related merge requests found
......@@ -620,6 +620,10 @@ log_cf_gen(ConfigArgs *c)
rc = mask_to_verbs( logops, li->li_ops, &c->rvalue_vals );
break;
case LOG_PURGE:
if ( !li->li_age ) {
rc = 1;
break;
}
agebv.bv_val = agebuf;
log_age_unparse( li->li_age, &agebv );
agebv.bv_val[agebv.bv_len] = ' ';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment