summaryrefslogtreecommitdiff
path: root/legacy/ethumb/src/bin/ethumbd_child.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--legacy/ethumb/src/bin/ethumbd_child.c27
1 files changed, 23 insertions, 4 deletions
diff --git a/legacy/ethumb/src/bin/ethumbd_child.c b/legacy/ethumb/src/bin/ethumbd_child.c
index e8e80fdfb4..9aa660cd82 100644
--- a/legacy/ethumb/src/bin/ethumbd_child.c
+++ b/legacy/ethumb/src/bin/ethumbd_child.c
@@ -36,13 +36,15 @@
36 36
37#include "ethumbd_private.h" 37#include "ethumbd_private.h"
38 38
39#define DBG(...) EINA_LOG_DBG(__VA_ARGS__) 39#define DBG(...) EINA_LOG_DOM_DBG(_log_domain, __VA_ARGS__)
40#define INF(...) EINA_LOG_INFO(__VA_ARGS__) 40#define INF(...) EINA_LOG_DOM_INFO(_log_domain, __VA_ARGS__)
41#define WRN(...) EINA_LOG_WARN(__VA_ARGS__) 41#define WRN(...) EINA_LOG_DOM_WARN(_log_domain, __VA_ARGS__)
42#define ERR(...) EINA_LOG_ERR(__VA_ARGS__) 42#define ERR(...) EINA_LOG_DOM_ERR(_log_domain, __VA_ARGS__)
43 43
44#define NETHUMBS 100 44#define NETHUMBS 100
45 45
46static int _log_domain = -1;
47
46struct _Ethumbd_Child 48struct _Ethumbd_Child
47{ 49{
48 Ecore_Fd_Handler *fd_handler; 50 Ecore_Fd_Handler *fd_handler;
@@ -710,6 +712,18 @@ main(int argc, const char *argv[])
710 712
711 ethumb_init(); 713 ethumb_init();
712 714
715 if (_log_domain < 0)
716 {
717 _log_domain = eina_log_domain_register("ethumbd_child", NULL);
718
719 if (_log_domain < 0)
720 {
721 EINA_LOG_CRIT("could not register log domain 'ethumbd_child'");
722 ethumb_shutdown();
723 return 1;
724 }
725 }
726
713 ec = _ec_new(); 727 ec = _ec_new();
714 728
715 _ec_setup(ec); 729 _ec_setup(ec);
@@ -720,6 +734,11 @@ main(int argc, const char *argv[])
720 734
721 _ec_free(ec); 735 _ec_free(ec);
722 736
737 if (_log_domain >= 0)
738 {
739 eina_log_domain_unregister(_log_domain);
740 _log_domain = -1;
741 }
723 ethumb_shutdown(); 742 ethumb_shutdown();
724 743
725 return 0; 744 return 0;