~brianaker/gearmand/734663

« back to all changes in this revision

Viewing changes to libgearman-server/log.h

  • Committer: Brian Aker
  • Date: 2011-02-22 16:57:21 UTC
  • Revision ID: brian@tangent.org-20110222165721-u32mbznlcspg6lab
Improve on error logging.

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
GEARMAN_INTERNAL_API
52
52
void gearmand_log_gerror(const char *position, const char *message, const gearman_return_t rc);
53
53
 
 
54
GEARMAN_INTERNAL_API
 
55
void gearmand_log_gai_error(const char *position, const char *message, const int rc);
 
56
 
54
57
#define gearmand_error(A) do { gearmand_log_error("%s -> %s", A, AT); } while (0)
55
58
#define gearmand_perror(A) do { gearmand_log_perror(AT, A); } while (0)
56
59
#define gearmand_gerror(A,B) do { gearmand_log_gerror(AT, A, B); } while (0)
 
60
#define gearmand_gai_error(A,B) do { gearmand_log_gerror(AT, A, B); } while (0)
57
61
 
58
62
 
59
63
/**