diff --git a/index.js b/index.js
index 2565dfc56b09c369b7a29af0564bd3bc3a4e93d9..829d5293ce2d9a495dc26914157ef6cf7d7f5a25 100644
--- a/index.js
+++ b/index.js
@@ -41,8 +41,8 @@ function Log (options) {
     } catch (err) {
       try {
         this.fs.writeFileSync(this.path.join(this.options.path, this.options.file), '', { flag: 'wx' })
-      } catch (err) {
-        throw new Error('Could not Create File ' + this.options.file + '\n' + err.toString())
+      } catch (innerErr) {
+        throw new Error('Could not Create File ' + this.options.file + '\n' + innerErr.toString())
       }
     }
   }
@@ -121,11 +121,11 @@ function Log (options) {
     }
     if (this.options.graylog && this.options.graylog.active) {
       let data = JSON.stringify({
-        short_message: msg,
+        short_message: message,
         timestamp: Date.now() / 1000,
         host: this.hostname,
         facility: this.name,
-        level: tag
+        level: this.levels[tag]
         })
       this.udpclient.send(Buffer.from(data),this.options.graylog.port,this.options.graylog.server,function(error){
         if(error){