build the info message, log the message in database if requested, rewrite the thread temporary file Args: content: content of the message Returns: None
(content)
| 24 | |
| 25 | |
| 26 | def info(content): |
| 27 | """ |
| 28 | build the info message, log the message in |
| 29 | database if requested, rewrite the thread temporary file |
| 30 | |
| 31 | Args: |
| 32 | content: content of the message |
| 33 | |
| 34 | Returns: |
| 35 | None |
| 36 | """ |
| 37 | sys.stdout.buffer.write( |
| 38 | bytes( |
| 39 | color.color_cmd("yellow") |
| 40 | + "[+] [{0}] ".format(now()) |
| 41 | + color.color_cmd("green") |
| 42 | + content |
| 43 | + color.color_cmd("reset") |
| 44 | + "\n", |
| 45 | "utf8" |
| 46 | ) |
| 47 | ) |
| 48 | sys.stdout.flush() |
| 49 | return |
| 50 | |
| 51 | |
| 52 | def write(content): |