@@ 2642-2648 (lines=7) @@ | ||
2639 | * @param bool $reset |
|
2640 | * @return string |
|
2641 | */ |
|
2642 | public function log_file_name($reset = false) |
|
2643 | { |
|
2644 | if (empty($this->log_file_name) || $reset) { |
|
2645 | $this->log_file_name = sanitize_key('espresso_log_' . md5(uniqid('', true))) . '.txt'; |
|
2646 | EE_Config::instance()->update_espresso_config(false, false); |
|
2647 | } |
|
2648 | return $this->log_file_name; |
|
2649 | } |
|
2650 | ||
2651 | ||
@@ 2656-2662 (lines=7) @@ | ||
2653 | * @param bool $reset |
|
2654 | * @return string |
|
2655 | */ |
|
2656 | public function debug_file_name($reset = false) |
|
2657 | { |
|
2658 | if (empty($this->debug_file_name) || $reset) { |
|
2659 | $this->debug_file_name = sanitize_key('espresso_debug_' . md5(uniqid('', true))) . '.txt'; |
|
2660 | EE_Config::instance()->update_espresso_config(false, false); |
|
2661 | } |
|
2662 | return $this->debug_file_name; |
|
2663 | } |
|
2664 | ||
2665 |