build the warn message Args: content: content of the message Returns: the message in warn structure - None
(content)
| 67 | |
| 68 | |
| 69 | def warn(content): |
| 70 | """ |
| 71 | build the warn message |
| 72 | |
| 73 | Args: |
| 74 | content: content of the message |
| 75 | |
| 76 | Returns: |
| 77 | the message in warn structure - None |
| 78 | """ |
| 79 | logger.warning(content) |
| 80 | sys.stdout.buffer.write( |
| 81 | bytes( |
| 82 | color.color_cmd("blue") |
| 83 | + "[!] [{0}] ".format(now()) |
| 84 | + color.color_cmd("yellow") |
| 85 | + content |
| 86 | + color.color_cmd("reset") |
| 87 | + "\n", |
| 88 | "utf8") |
| 89 | ) |
| 90 | sys.stdout.flush() |
| 91 | |
| 92 | return |
| 93 | |
| 94 | |
| 95 | def verbose_info(content): |