@@ -16,8 +16,6 @@ namespace ccf::pal
1616{
1717#if !defined(INSIDE_ENCLAVE) || defined(VIRTUAL_ENCLAVE)
1818
19- static inline void redirect_platform_logging () {}
20-
2119 static inline void initialize_enclave () {}
2220
2321 static inline void shutdown_enclave () {}
@@ -29,41 +27,6 @@ namespace ccf::pal
2927
3028#else
3129
32- static void open_enclave_logging_callback (
33- void * context,
34- oe_log_level_t level,
35- uint64_t thread_id,
36- const char * message)
37- {
38- switch (level)
39- {
40- case OE_LOG_LEVEL_FATAL:
41- CCF_LOG_FMT (FATAL, " " )(" OE: {}" , message);
42- break ;
43- case OE_LOG_LEVEL_ERROR:
44- CCF_LOG_FMT (FAIL, " " )(" OE: {}" , message);
45- break ;
46- case OE_LOG_LEVEL_WARNING:
47- CCF_LOG_FMT (FAIL, " " )(" OE: {}" , message);
48- break ;
49- case OE_LOG_LEVEL_INFO:
50- CCF_LOG_FMT (INFO, " " )(" OE: {}" , message);
51- break ;
52- case OE_LOG_LEVEL_VERBOSE:
53- CCF_LOG_FMT (DEBUG, " " )(" OE: {}" , message);
54- break ;
55- case OE_LOG_LEVEL_MAX:
56- case OE_LOG_LEVEL_NONE:
57- CCF_LOG_FMT (TRACE, " " )(" OE: {}" , message);
58- break ;
59- }
60- }
61-
62- static inline void redirect_platform_logging ()
63- {
64- oe_enclave_log_set_callback (nullptr , &open_enclave_logging_callback);
65- }
66-
6730 static inline void initialize_enclave ()
6831 {
6932 auto rc = oe_attester_initialize ();
0 commit comments