Skip to content

Commit

Permalink
Update logger.php
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximeCulea authored Apr 6, 2020
1 parent 30c17da commit 2a8da7e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ public function log_this( $message, $type = self::gravity_7 ) {

// Make the log path
$log_full_path = $this->log_path . $this->log_ext;

// Check if file exists, otherwise create it
if ( ! file_exists( $log_full_path ) ) {
fopen( $log_full_path, "w" );
}

// Maybe move the file
$this->maybe_move_file( $log_full_path );
Expand Down

0 comments on commit 2a8da7e

Please sign in to comment.