if (enabled_tags->end_of_life && (enabled_tags->end_of_life < now))
{
struct client_specific_tag *next_tag = enabled_tags->next;
- log_error(LOG_LEVEL_INFO,
+ log_error(LOG_LEVEL_TAGGING,
"Tag '%s' for client %s expired %ld seconds ago. Deleting it.",
enabled_tags->name, client_address,
(now - enabled_tags->end_of_life));
}
else
{
+ log_error(LOG_LEVEL_TAGGING, "Enlisting tag '%s' for client %s",
+ enabled_tags->name, client_address);
enlist(tag_list, enabled_tags->name);
}
enabled_tags = enabled_tags->next;
enabled_tags = get_tags_for_client(client_address);
while (enabled_tags != NULL)
{
- log_error(LOG_LEVEL_CGI, "Evaluating tag '%s' for client %s. End of life %ld",
+ log_error(LOG_LEVEL_TAGGING,
+ "Evaluating tag '%s' for client %s. End of life %ld",
enabled_tags->name, client_address, enabled_tags->end_of_life);
if (enabled_tags->end_of_life)
{
if (client_has_requested_tag(csp->client_address, tag_name))
{
- log_error(LOG_LEVEL_ERROR,
+ log_error(LOG_LEVEL_TAGGING,
"Tag '%s' already enabled for client '%s'", tag->name, csp->client_address);
}
else
{
add_tag_for_client(csp->client_address, tag_name, time_to_live);
- log_error(LOG_LEVEL_INFO,
+ log_error(LOG_LEVEL_TAGGING,
"Tag '%s' enabled for client '%s'. TTL: %ld.",
tag->name, csp->client_address, time_to_live);
}
if (client_has_requested_tag(csp->client_address, tag_name))
{
remove_tag_for_client(csp->client_address, tag_name);
- log_error(LOG_LEVEL_INFO,
+ log_error(LOG_LEVEL_TAGGING,
"Tag '%s' disabled for client '%s'", tag->name, csp->client_address);
}
else
{
- log_error(LOG_LEVEL_ERROR,
+ log_error(LOG_LEVEL_TAGGING,
"Tag '%s' currently not set for client '%s'",
tag->name, csp->client_address);
}
{
if (0 == regexec(pattern->pattern.tag_regex, tag->str, 0, NULL, 0))
{
+ log_error(LOG_LEVEL_TAGGING, "Tag '%s' matches", tag->str);
return 1;
}
}