Skip to content

Commit

Permalink
v1.0 minor chnages
Browse files Browse the repository at this point in the history
  • Loading branch information
vaakash committed Aug 15, 2020
1 parent 26443d2 commit 2243f0d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 7 additions & 1 deletion includes/utilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,14 @@ public static function log( $message = '' ){
public static function read_log( $total_lines = 500 ){
// https://stackoverflow.com/a/2961685/306961

$log_path = GIW_PATH . 'logs/log.log';

if( !file_exists( $log_path ) ){
return array('Nothing logged yet !');
}

$lines = array();
$fp = fopen( GIW_PATH . 'logs/log.log', 'r' );
$fp = fopen( $log_path, 'r' );

while( !feof( $fp ) ){
$line = fgets( $fp, 4096 );
Expand Down
3 changes: 2 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ It is recommended that a permalink structure is enabled in the WordPress site so

* [FAQ](https://www.aakashweb.com/docs/git-it-write/)
* [Support forum/Report bugs](https://www.aakashweb.com/forum/)

* [Donate](https://www.paypal.me/vaakash/)
* [Contribute on Github](https://github.com/vaakash/git-it-write)


## Installation
Expand Down

0 comments on commit 2243f0d

Please sign in to comment.