Skip to content

Commit

Permalink
fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
name5566 committed Aug 10, 2014
1 parent f88f118 commit fff16cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion log/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func New(strLevel string, pathname string) (*Logger, error) {

// It's dangerous to call the method on logging
func (logger *Logger) Close() {
if logger.baseFile {
if logger.baseFile != nil {
logger.baseFile.Close()
}

Expand Down

0 comments on commit fff16cd

Please sign in to comment.