Skip to content
Snippets Groups Projects
Commit 9708f541 authored by Stefan Laudemann's avatar Stefan Laudemann
Browse files

Fixes some spelling and wording issues in ffpb-debug.

parent 96fe5fbb
No related branches found
No related tags found
No related merge requests found
...@@ -49,7 +49,7 @@ if oldReport==nil then ...@@ -49,7 +49,7 @@ if oldReport==nil then
-- no existing debugreport, let's generate a new one -- no existing debugreport, let's generate a new one
-- inform the User ;) -- inform the User ;)
print ('Hello, i will gather some information about your node now.') print ('Hello, I will gather some information about your node now.')
print ('This may take some seconds, please stand by.') print ('This may take some seconds, please stand by.')
-- first of all, collect some generic information about the system -- first of all, collect some generic information about the system
...@@ -119,12 +119,12 @@ end ...@@ -119,12 +119,12 @@ end
-- if local mode is requested print the report, otherwise send it to the admin team -- if local mode is requested print the report, otherwise send it to the admin team
siteConfig = require("gluon.site_config") siteConfig = require("gluon.site_config")
if localMode then if localMode then
print ('As requested, i will not send the report, here it is:') print ('As requested, I will not send the report to the gurus, so here it is:')
print (debugdata) print (debugdata)
nixio.fs.unlink(PATH_DBG_REPORT) nixio.fs.unlink(PATH_DBG_REPORT)
else else
local nixio = require('nixio'), require('nixio.util') local nixio = require('nixio'), require('nixio.util')
print('Sending report to Admin-Team ...') print('Sending debug data to a remote server ...')
local sent = 0 local sent = 0
local reportname = nil local reportname = nil
local port = siteConfig.debugserver.port local port = siteConfig.debugserver.port
...@@ -150,9 +150,8 @@ else ...@@ -150,9 +150,8 @@ else
print('\nYour report has been stored at the debug-server with the name: ' .. reportname) print('\nYour report has been stored at the debug-server with the name: ' .. reportname)
print('I also notified some gurus to take care of the issue. My job is done here, good bye!.') print('I also notified some gurus to take care of the issue. My job is done here, good bye!.')
else else
print('Sorry, i could\'t send the report. I will try it again') print('Sorry, I couldn\'t send the report. I will try it again the next time you run me.')
print('when this script will be invoked the next time.') print('See you soon ...')
print('Good bye')
local f = nixio.open(PATH_DBG_REPORT, 'w') local f = nixio.open(PATH_DBG_REPORT, 'w')
f:writeall(debugdata) f:writeall(debugdata)
f:close() f:close()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment